C# Class TimelapseApi.Common.Utility

Mostrar archivo Open project: evercam/Timelapse

Public Methods

Method Description
GetJsonResult ( string message ) : Newtonsoft.Json.Linq.JObject
GetJsonResult ( string message, bool success ) : Newtonsoft.Json.Linq.JObject
GetResponseException ( string message, HttpStatusCode status ) : HttpResponseException
GetResponseMessage ( string message, HttpStatusCode status ) : HttpResponseMessage
GetTimelapseResourceUrl ( Timelapse timelapse ) : string
GetTimezone ( string tzId ) : string

Method Details

GetJsonResult() public static method

public static GetJsonResult ( string message ) : Newtonsoft.Json.Linq.JObject
message string
return Newtonsoft.Json.Linq.JObject

GetJsonResult() public static method

public static GetJsonResult ( string message, bool success ) : Newtonsoft.Json.Linq.JObject
message string
success bool
return Newtonsoft.Json.Linq.JObject

GetResponseException() public static method

public static GetResponseException ( string message, HttpStatusCode status ) : HttpResponseException
message string
status HttpStatusCode
return HttpResponseException

GetResponseMessage() public static method

public static GetResponseMessage ( string message, HttpStatusCode status ) : HttpResponseMessage
message string
status HttpStatusCode
return System.Net.Http.HttpResponseMessage

GetTimelapseResourceUrl() public static method

public static GetTimelapseResourceUrl ( Timelapse timelapse ) : string
timelapse BLL.Entities.Timelapse
return string

GetTimezone() public static method

public static GetTimezone ( string tzId ) : string
tzId string
return string