Esempio n. 1
0
        public static async Task <bool> TryDeleteGroupAsync()
        {
            // Create a group first, then delete it.
            string createdGroup = await GroupSnippets.CreateGroupAsync(STORY_DATA_IDENTIFIER);

            return(await GroupSnippets.DeleteGroupAsync(createdGroup));
        }
Esempio n. 2
0
        public static async Task <bool> TryGetGroupAsync()
        {
            var groups = await GroupSnippets.GetGroupsAsync();

            var groupId   = groups[0];
            var groupName = await GroupSnippets.GetGroupAsync(groupId);

            return(groupName != null);
        }
Esempio n. 3
0
        public static async Task <bool> TryGetGroupOwnersAsync()
        {
            // Get all groups, then pass the first group id from the list.
            var groups = await GroupSnippets.GetGroupsAsync();

            var groupId = groups[0];
            var members = await GroupSnippets.GetGroupOwnersAsync(groupId);

            return(members != null);
        }
Esempio n. 4
0
        public static async Task <bool> TryCreateGroupAsync()
        {
            string createdGroup = await GroupSnippets.CreateGroupAsync(STORY_DATA_IDENTIFIER);

            return(createdGroup != null);
        }
Esempio n. 5
0
        public static async Task <bool> TryGetGroupsAsync()
        {
            var groups = await GroupSnippets.GetGroupsAsync();

            return(groups != null);
        }