コード例 #1
0
        internal GameProfiles(GameProfilesApi api, ISession session, string @namespace, CoroutineRunner coroutineRunner)
        {
            Assert.IsNotNull(api, "api parameter can not be null.");
            Assert.IsNotNull(session, "session parameter can not be null");
            Assert.IsFalse(string.IsNullOrEmpty(@namespace), "ns paramater couldn't be empty");
            Assert.IsNotNull(coroutineRunner, "coroutineRunner parameter can not be null. Construction failed");

            this.api             = api;
            this.session         = session;
            this.@namespace      = @namespace;
            this.coroutineRunner = coroutineRunner;
        }
コード例 #2
0
        internal GameProfiles(GameProfilesApi api, User user, AsyncTaskDispatcher taskDispatcher,
                              CoroutineRunner coroutineRunner)
        {
            Assert.IsNotNull(api, "Can not construct GameProfile manager; api is null!");
            Assert.IsNotNull(user, "Can not construct GameProfile manager; userAccount is null!");
            Assert.IsNotNull(taskDispatcher, "Can not construct GameProfile manager; taskDispatcher is null!");
            Assert.IsNotNull(coroutineRunner, "Can not construct GameProfile manager; coroutineRunner is null!");

            this.api             = api;
            this.user            = user;
            this.taskDispatcher  = taskDispatcher;
            this.coroutineRunner = coroutineRunner;
        }