コード例 #1
0
        public static IsFollowingRequest ToIsFollowingRPC(this FollowQuery query)
        {
            var request = new IsFollowingRequest();

            request.EntityIds = new Thrift.Collections.THashSet <string>();
            request.EntityIds.AddAll(query.Ids.Ids);
            request.EntityType = (int)query.Ids.Type;
            return(request);
        }
コード例 #2
0
 public static void IsFollowing(UserId userId, FollowQuery query, Action <Dictionary <string, bool> > success, Action <GetSocialError> failure)
 {
     GetSocialFactory.Bridge.IsFollowing(userId, query, success, failure);
 }
コード例 #3
0
 public static void Unfollow(FollowQuery query, Action <int> success, Action <GetSocialError> failure)
 {
     GetSocialFactory.Bridge.Unfollow(query, success, failure);
 }
コード例 #4
0
 public void IsFollowing(UserId userId, FollowQuery query, Action <Dictionary <string, bool> > success, Action <GetSocialError> failure)
 {
     CallAsync("Communities.isFollowing", GSJson.Serialize(new IsFollowingBody {
         UserId = userId, Query = query
     }), success, failure);
 }
コード例 #5
0
 public void Unfollow(FollowQuery query, Action <int> success, Action <GetSocialError> failure)
 {
     CallAsync("Communities.unfollow", GSJson.Serialize(query), success, failure);
 }