예제 #1
0
        public static UsersResult fromResponse(ResponseWrapper responseWrapper)
        {
            UsersResult usersResult = new UsersResult();
            if (responseWrapper.isServerResponse()) {
                usersResult = JsonConvert.DeserializeObject<UsersResult> (responseWrapper.responseContent);
            }
            usersResult.ResponseResult=responseWrapper;
            return usersResult;
	    }
예제 #2
0
        public UsersResult    getUsers(TimeUnit timeUnit, String start, int duration)
        {
            String url = REPORT_HOST_NAME + REPORT_USER_PATH
                         + "?time_unit=" + timeUnit.ToString()
                         + "&start=" + start + "&duration=" + duration;
            String          auth     = Base64Helper.GetBase64Encode(this.appKey + ":" + this.masterSecret);
            ResponseWrapper response = this.sendGet(url, auth, null);

            return(UsersResult.fromResponse(response));
        }
예제 #3
0
        public static UsersResult fromResponse(ResponseWrapper responseWrapper)
        {
            UsersResult usersResult = new UsersResult();

            if (responseWrapper.isServerResponse())
            {
                usersResult = JsonConvert.DeserializeObject <UsersResult> (responseWrapper.responseContent);
            }
            usersResult.ResponseResult = responseWrapper;
            return(usersResult);
        }