Beispiel #1
0
        public ResponseWrapper deleteUser(UserPayload payload)
        {
            Preconditions.checkArgument(payload != null, "pushPayload should not be empty");
            String username = payload.username;

            return(deleteUser(username));
        }
Beispiel #2
0
        public ResponseWrapper getUserStat(UserPayload payload)
        {
            Preconditions.checkArgument(payload != null, "pushPayload should not be empty");
            string username = payload.username;

            return(getUserStat(username));
        }
Beispiel #3
0
        public ResponseWrapper registAdmin(UserPayload payload)
        {
            Preconditions.checkArgument(payload != null, "pushPayload should not be empty");
            payload.Check();
            String payloadJson = payload.ToString(payload);

            return(registAdmin(payloadJson));
        }
Beispiel #4
0
 public string ToString(UserPayload user)
 {
     return(JsonConvert.SerializeObject(user,
                                        Newtonsoft.Json.Formatting.None,
                                        new JsonSerializerSettings
     {
         NullValueHandling = NullValueHandling.Ignore
     }));
 }
Beispiel #5
0
        public ResponseWrapper updateUserPassword(UserPayload payload)
        {
            Preconditions.checkArgument(payload != null, "pushPayload should not be empty");
            String username = payload.username;

            payload.username = null;
            String payloadJson = payload.ToString(payload);

            return(updateUserPassword(payloadJson, username));
        }