예제 #1
0
        public static IAsyncResult BeginAddTrophy(string gameId, string privateKey, string username, string userToken, string trophyId, AsyncCallback callback = null, object asyncState = null)
        {
            var request = TrophyRequestFactory.CreateAddAchieveRequest(gameId, privateKey, username, userToken, trophyId);

            return(request.Begin(callback, asyncState));
        }
예제 #2
0
        public static Trophy[] GetAll(string gameId, string privateKey, string username, string userToken, TrophyFilter filter = TrophyFilter.All)
        {
            var request = TrophyRequestFactory.CreateGetRequest(gameId, privateKey, username, userToken, filter);

            return(request.Process(null));
        }
예제 #3
0
        public static Trophy GetById(string gameId, string privateKey, string username, string userToken, string trophyId)
        {
            var request = TrophyRequestFactory.CreateGetRequest(gameId, privateKey, username, userToken, trophyId);

            return(request.Process(null)[0]);
        }
예제 #4
0
        public static IAsyncResult BeginGetAll(string gameId, string privateKey, string username, string userToken, TrophyFilter filter = TrophyFilter.All, AsyncCallback callback = null, object asyncState = null)
        {
            var request = TrophyRequestFactory.CreateGetRequest(gameId, privateKey, username, userToken, filter);

            return(request.Begin(callback, asyncState));
        }
예제 #5
0
        public static string AddTrophy(string gameId, string privateKey, string username, string userToken, string trophyId)
        {
            var request = TrophyRequestFactory.CreateAddAchieveRequest(gameId, privateKey, username, userToken, trophyId);

            return(request.Process(null));
        }