Last active
August 3, 2018 09:54
-
-
Save Delaire/2f4dfd7acccebe03a19911031e059701 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// class for requesting lists. | |
/// </summary> | |
public class ListRequest : RequestBase | |
{ | |
private string _callId; | |
public ListRequest(string callId) | |
{ | |
_callId = callId; | |
} | |
/// <summary> | |
/// The call identifier for the _request | |
/// </summary> | |
public override string CallIdentifier | |
{ | |
get | |
{ | |
return _callId; | |
} | |
} | |
/// <summary> | |
/// The params to set in httpcontent | |
/// </summary> | |
public override string ParamsToCall | |
{ | |
get | |
{ | |
//get the awaited result from file | |
var queryParams = SimpleIoc.Default.GetInstance<IFileIoReaderHelper>().ReadFromDefaultFile(CallIdentifier); | |
//set data in wrapper | |
var keyQuery = new RequestWrapper() | |
{ | |
query = (queryParams) | |
}; | |
//returning a Serialized object | |
return JsonConvert.SerializeObject(keyQuery); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment