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)); }
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); })); }