public HttpResponseMessage Start(StartingRecord record) { string query = QueryStringConstants.MakeStartQueryString(record); HttpResponseMessage msg = host.GetAsync(query).GetAwaiter().GetResult(); return(msg); }
public InvoiceBuffer Next(int user_id) { string query = QueryStringConstants.MakeGetNextQueryString(user_id); HttpResponseMessage msg = host.GetAsync(query).GetAwaiter().GetResult(); string content = msg.Content.ReadAsStringAsync().GetAwaiter().GetResult(); entity_framework.InvoiceBuffer ret = JsonConvert.DeserializeObject <entity_framework.InvoiceBuffer>(content); return(ret); }
public void SetProcessAutomaticSwitch(bool val) { string query = QueryStringConstants.MakeProcessAutomaticSwitchQueryString(val); host.GetAsync(query); }
public void SetLockedThreshold(int seconds) { string query = QueryStringConstants.MakeLockedThresholdString(seconds); host.GetAsync(query); }
public string Finish(InvoiceBuffer rec) { string content = JsonConvert.SerializeObject(rec); return(QueryStringConstants.PostFinish(content, host)); }
public HttpResponseMessage RemoveFromQueue(StartingRecord record) { return(host.GetAsync(QueryStringConstants.MakeRemoveFromQueueQueryString(record)).GetAwaiter().GetResult()); }