示例#1
0
 private void CallCreateGroupDialog()
 {
     FB.GameGroupCreate(
         this.gamerGroupName,
         this.gamerGroupDesc,
         this.gamerGroupPrivacy,
         this.GroupCreateCB);
 }
 private void CallCreateGroupDialog()
 {
     FB.GameGroupCreate(
         GamerGroupName,
         GamerGroupDesc,
         GamerGroupPrivacy,
         GroupCreateCB);
 }
        public void TestGameGroupCreate()
        {
            IGroupCreateResult result = null;

            FB.GameGroupCreate("Name", "Description", "CLOSED", (r) => (result = r));
            Assert.IsNotNull(result);
            Assert.AreEqual(result.GroupId, MockResults.MockGroupIDValue);
        }
示例#4
0
        protected override void GetGui()
        {
            if (this.Button("Game Group Create - Closed"))
            {
                FB.GameGroupCreate(
                    "Test game group",
                    "Test description",
                    "CLOSED",
                    this.HandleResult);
            }

            if (this.Button("Game Group Create - Open"))
            {
                FB.GameGroupCreate(
                    "Test game group",
                    "Test description",
                    "OPEN",
                    this.HandleResult);
            }

            this.LabelAndTextField("Group Name", ref this.gamerGroupName);
            this.LabelAndTextField("Group Description", ref this.gamerGroupDesc);
            this.LabelAndTextField("Group Privacy", ref this.gamerGroupPrivacy);

            if (this.Button("Call Create Group Dialog"))
            {
                this.CallCreateGroupDialog();
            }

            this.LabelAndTextField("Group To Join", ref this.gamerGroupCurrentGroup);
            bool enabled = GUI.enabled;

            GUI.enabled = enabled && !string.IsNullOrEmpty(this.gamerGroupCurrentGroup);
            if (this.Button("Call Join Group Dialog"))
            {
                this.CallJoinGroupDialog();
            }

            GUI.enabled = enabled && FB.IsLoggedIn;
            if (this.Button("Get All App Managed Groups"))
            {
                this.CallFbGetAllOwnedGroups();
            }

            if (this.Button("Get Gamer Groups Logged in User Belongs to"))
            {
                this.CallFbGetUserGroups();
            }

            GUI.enabled = enabled && !string.IsNullOrEmpty(this.gamerGroupCurrentGroup);
            if (this.Button("Make Group Post As User"))
            {
                this.CallFbPostToGamerGroup();
            }

            GUI.enabled = enabled;
        }
示例#5
0
        protected unsafe override void GetGui()
        {
            if (Button("Game Group Create - Closed"))
            {
                FB.GameGroupCreate("Test game group", "Test description", "CLOSED", new FacebookDelegate <IGroupCreateResult>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            }
            if (Button("Game Group Create - Open"))
            {
                FB.GameGroupCreate("Test game group", "Test description", "OPEN", new FacebookDelegate <IGroupCreateResult>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            }
            LabelAndTextField("Group Name", ref gamerGroupName);
            LabelAndTextField("Group Description", ref gamerGroupDesc);
            LabelAndTextField("Group Privacy", ref gamerGroupPrivacy);
            if (Button("Call Create Group Dialog"))
            {
                CallCreateGroupDialog();
            }
            LabelAndTextField("Group To Join", ref gamerGroupCurrentGroup);
            bool enabled = GUI.get_enabled();

            GUI.set_enabled(enabled && !string.IsNullOrEmpty(gamerGroupCurrentGroup));
            if (Button("Call Join Group Dialog"))
            {
                CallJoinGroupDialog();
            }
            GUI.set_enabled(enabled && FB.get_IsLoggedIn());
            if (Button("Get All App Managed Groups"))
            {
                CallFbGetAllOwnedGroups();
            }
            if (Button("Get Gamer Groups Logged in User Belongs to"))
            {
                CallFbGetUserGroups();
            }
            if (Button("Make Group Post As User"))
            {
                CallFbPostToGamerGroup();
            }
            GUI.set_enabled(enabled);
        }
示例#6
0
 private void CallCreateGroupDialog()
 {
     FB.GameGroupCreate(this.gamerGroupName, this.gamerGroupDesc, this.gamerGroupPrivacy, new FacebookDelegate <IGroupCreateResult>(this.GroupCreateCB));
 }
示例#7
0
 private unsafe void CallCreateGroupDialog()
 {
     FB.GameGroupCreate(gamerGroupName, gamerGroupDesc, gamerGroupPrivacy, new FacebookDelegate <IGroupCreateResult>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
 }