Exemplo n.º 1
0
        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>());
        }
Exemplo n.º 3
0
        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>());
        }
Exemplo n.º 4
0
        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>());
        }
Exemplo n.º 5
0
        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>());
        }
Exemplo n.º 6
0
        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>());
        }
Exemplo n.º 7
0
        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>());
        }