コード例 #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);
        }
コード例 #2
0
        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>());
        }
コード例 #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>());
        }
コード例 #4
0
        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>());
        }
コード例 #5
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>());
        }
コード例 #6
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>());
        }
コード例 #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>());
        }
コード例 #8
0
        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));
        }
コード例 #9
0
        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));
        }
コード例 #10
0
        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));
        }
コード例 #11
0
        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));
        }
コード例 #12
0
        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));
        }
コード例 #13
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>());
        }