Skip to content

Instantly share code, notes, and snippets.

@Delaire
Last active August 3, 2018 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Delaire/2f4dfd7acccebe03a19911031e059701 to your computer and use it in GitHub Desktop.
Save Delaire/2f4dfd7acccebe03a19911031e059701 to your computer and use it in GitHub Desktop.
/// <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