Ejemplo n.º 1
0
        public async Task <string> GetUserActiveSurveyDetailsUsingRefKeyAsync(string refKey)
        {
            var SQLiteInfo = M2ESSOClient.GetUserInfoFromSQLite();

            var userActiveSurveyTaskDetailAsync =
                M2ESSOClient.MakePostRequestWithHeaders(
                    Constants.serverContextUrl + "/User/GetTemplateSurveyQuestionsByRefKey?refKey=" + refKey, null, null, SQLiteInfo.UTMZK,
                    SQLiteInfo.TokenId, SQLiteInfo.UTMZV);

            return(await userActiveSurveyTaskDetailAsync);
        }
Ejemplo n.º 2
0
        public async Task <string> GetUserDetailsAsync()
        {
            var SQLiteInfo = M2ESSOClient.GetUserInfoFromSQLite();

            var userDetailAsync =
                M2ESSOClient.MakePostRequestWithHeaders(
                    Constants.serverContextUrl + "/Client/GetClientDetails?userType=user", null, null, SQLiteInfo.UTMZK,
                    SQLiteInfo.TokenId, SQLiteInfo.UTMZV);

            return(await userDetailAsync);
        }
Ejemplo n.º 3
0
        public async Task <string> GetUserActiveTaskDetailsAsync()
        {
            var SQLiteInfo = M2ESSOClient.GetUserInfoFromSQLite();

            var userAllTaskDetailAsync =
                M2ESSOClient.MakePostRequestWithHeaders(
                    Constants.serverContextUrl + "/User/GetUserActiveThreads?status=active", null, null, SQLiteInfo.UTMZK,
                    SQLiteInfo.TokenId, SQLiteInfo.UTMZV);

            return(await userAllTaskDetailAsync);
        }
Ejemplo n.º 4
0
        public async Task <string> AcceptUserTaskByRefIdAsync(string refKey)
        {
            var SQLiteInfo = M2ESSOClient.GetUserInfoFromSQLite();

            var acceptUserTaskByRefIdResponse =
                M2ESSOClient.MakePostRequestWithHeaders(
                    Constants.serverContextUrl + "/User/AllocateThreadToUserByRefKey?refKey=" + refKey, null, null, SQLiteInfo.UTMZK,
                    SQLiteInfo.TokenId, SQLiteInfo.UTMZV);

            return(await acceptUserTaskByRefIdResponse);
        }