public async Task <Authenticate> AuthenticateUser(string Email, string Password) { string authenticateData = await _connection.GetDataAsync("Authenticate", HttpComposedParameters.Of("Email", Email), HttpComposedParameters.Of("Password", Password)); Authenticate authenticateObj = JsonConvert.DeserializeObject <Authenticate>(authenticateData); return(authenticateObj); }
public async Task <Perspective> GetPerspectiveById(string PerspectiveId) { string jsonResult = await _connection.GetDataAsync("GetPerspectiveById", HttpComposedParameters.Of("PerspectiveId", PerspectiveId)); dynamic result = JObject.Parse(jsonResult); JObject perspectiveObj = (JObject)result.Company; return(perspectiveObj.ToObject <Perspective>()); }
public async Task <Client> GetClientById(string ClientId) { string jsonResult = await _connection.GetDataAsync("GetClientById", HttpComposedParameters.Of("ClientId", ClientId)); dynamic result = JObject.Parse(jsonResult); JObject clientObj = (JObject)result.Clients; return(clientObj.ToObject <Client>()); }
public async Task <User> GetUserById(string UserId) { string jsonResult = await _connection.GetDataAsync("GetUserById", HttpComposedParameters.Of("UserId", UserId)); dynamic result = JObject.Parse(jsonResult); JObject userObj = (JObject)result.User; return(userObj.ToObject <User>()); }
public async Task <Metric> GetMetricById(string MetricId) { string jsonResult = await _connection.GetDataAsync("GetMetricById", HttpComposedParameters.Of("MetricId", MetricId)); dynamic result = JObject.Parse(jsonResult); JObject metricObj = (JObject)result.Company; return(metricObj.ToObject <Metric>()); }
public async Task <Objective> GetObjectiveById(string ObjectiveId) { string jsonResult = await _connection.GetDataAsync("GetObjectiveById", HttpComposedParameters.Of("ObjectiveId", ObjectiveId)); dynamic result = JObject.Parse(jsonResult); JObject objectiveObj = (JObject)result.Objective; return(objectiveObj.ToObject <Objective>()); }
public async Task <Company> GetCompanyById(string companyId) { string jsonResult = await _connection.GetDataAsync("GetCompanyById", HttpComposedParameters.Of("CompanyId", companyId)); dynamic result = JObject.Parse(jsonResult); JObject companyObj = (JObject)result.Company; return(companyObj.ToObject <Company>()); }
public async Task <dynamic> GetClickById(string ClickId, string Token) { string jsonResult = await _connection.GetDataAsync("Click/Id/" + ClickId, Token, HttpComposedParameters.Of("ClickId", ClickId)); return(JObject.Parse(jsonResult)); }
public async Task <dynamic> GetIpByApiKey(string ApiKey, string Token) { string jsonResult = await _connection.GetDataAsync("Ip/ApiKey/" + ApiKey, Token, HttpComposedParameters.Of("ApiKey", ApiKey)); return(JObject.Parse(jsonResult)); }
public async Task <dynamic> GetScrollById(string ScrollId, string Token) { string jsonResult = await _connection.GetDataAsync("Scroll/Id/", Token, HttpComposedParameters.Of("ScrollId", ScrollId)); return(JObject.Parse(jsonResult)); }
public async Task <dynamic> GetMovementById(string MovementId, string Token) { string jsonResult = await _connection.GetDataAsync("Movement/Id/" + MovementId, Token, HttpComposedParameters.Of("MovementId", MovementId)); return(JObject.Parse(jsonResult)); }
public async Task <dynamic> GetFormById(string FormId, string Token) { string jsonResult = await _connection.GetDataAsync("/Form/Id/" + FormId, Token, HttpComposedParameters.Of("FormId", FormId)); return(JObject.Parse(jsonResult)); }
public async Task <BalanceScoreCard> GetBalanceScoreCardById(string BalanceScoreCardId) { string jsonResult = await _connection.GetDataAsync("GetBalanceScoreCardById", HttpComposedParameters.Of("BalanceScoreCardId", BalanceScoreCardId)); dynamic result = JObject.Parse(jsonResult); JObject balanceObj = (JObject)result.BalanceScoreCard; return(balanceObj.ToObject <BalanceScoreCard>()); }