예제 #1
0
        public async Task <UpdateUserGroupResponse> UpdateUserGroup(UpdateUserGroupRequest o)
        {
            var result = new UpdateUserGroupResponse(o.RequestId);

            result.Application = o.Application;
            result.Updated     = await Server.UpdateUserGroup(o.Id, o.Name, o.Description);

            return(result);
        }
        public static UpdateUserGroupResponse Unmarshall(UnmarshallerContext context)
        {
            UpdateUserGroupResponse updateUserGroupResponse = new UpdateUserGroupResponse();

            updateUserGroupResponse.HttpResponse = context.HttpResponse;
            updateUserGroupResponse.Code         = context.StringValue("UpdateUserGroup.Code");
            updateUserGroupResponse.Message      = context.StringValue("UpdateUserGroup.Message");
            updateUserGroupResponse.RequestId    = context.StringValue("UpdateUserGroup.RequestId");

            UpdateUserGroupResponse.UpdateUserGroup_Data data = new UpdateUserGroupResponse.UpdateUserGroup_Data();
            data.UserGroupId             = context.LongValue("UpdateUserGroup.Data.UserGroupId");
            data.IsvSubId                = context.StringValue("UpdateUserGroup.Data.IsvSubId");
            data.UserGroupName           = context.StringValue("UpdateUserGroup.Data.UserGroupName");
            data.UserCount               = context.LongValue("UpdateUserGroup.Data.UserCount");
            data.ParentUserGroupId       = context.StringValue("UpdateUserGroup.Data.ParentUserGroupId");
            updateUserGroupResponse.Data = data;

            return(updateUserGroupResponse);
        }