Example #1
0
 public static IPromise <bool> SetNickname(string nickname)
 {
     Req.Nickname req = new Req.Nickname {
         nickname = nickname
     };
     return(put <Res.Success>("/users/setNickname", req)
            .Then(res => res.success));
 }
Example #2
0
 public static IPromise <Res.UserAvatar> SetAvatarNickname(string userAvatarId, string nickname)
 {
     Req.Nickname req = new Req.Nickname {
         nickname = nickname
     };
     return(post <Res.UserAvatarResponse>("/user-avatars/" + userAvatarId + "/setNickname", req)
            .Then(res =>
     {
         GraphMap g = new GraphMap(res.graph);
         return g.UserAvatar(res.userAvatar);
     }));
 }