C# Class Zazzles.Middleware.Response

Contains the information that the FOG Server responds with
Datei anzeigen Open project: FOGProject/zazzles Class Usage Examples

Public Properties

Property Type Description
Codes string>.Dictionary

Public Methods

Method Description
GetField ( string id ) : string

Return the value stored at a specified key

GetSubResponse ( string id ) : Response
IsFieldValid ( string id ) : bool

Check if a field is not null or empty

PrettyPrint ( ) : void

Print out all ids and values

Response ( ) : System
Response ( JObject data, bool encrypted ) : System
Response ( bool error, JObject data, string returnCode, bool encrypted ) : System
Response ( string rawData, bool encrypted ) : System

Private Methods

Method Description
PrintStatus ( ) : void

Method Details

GetField() public method

Return the value stored at a specified key
public GetField ( string id ) : string
id string The ID to return
return string

GetSubResponse() public method

public GetSubResponse ( string id ) : Response
id string
return Response

IsFieldValid() public method

Check if a field is not null or empty
public IsFieldValid ( string id ) : bool
id string The field to check
return bool

PrettyPrint() public method

Print out all ids and values
public PrettyPrint ( ) : void
return void

Response() public method

public Response ( ) : System
return System

Response() public method

public Response ( JObject data, bool encrypted ) : System
data JObject
encrypted bool
return System

Response() public method

public Response ( bool error, JObject data, string returnCode, bool encrypted ) : System
error bool
data JObject
returnCode string
encrypted bool
return System

Response() public method

public Response ( string rawData, bool encrypted ) : System
rawData string
encrypted bool
return System

Property Details

Codes public_oe static_oe property

public static Dictionary Codes
return string>.Dictionary