public static async Task <bool> TryAddUserToGroup()
        {
            //Create a group
            string createdGroup = await GroupSnippets.CreateGroupAsync(STORY_DATA_IDENTIFIER);

            //Create a user
            string createdUser = await UserSnippets.CreateUserAsync(STORY_DATA_IDENTIFIER);

            //Add the user to the group
            return(await GroupSnippets.AddUserToGroup(createdUser, createdGroup));
        }
        public static async Task <bool> TryGetGroupAsync()
        {
            var groups = await GroupSnippets.GetGroupsAsync();

            // Create new group if no group currently exists
            // And then get updated groups array
            if (groups.Count == 0)
            {
                await GroupSnippets.CreateGroupAsync(STORY_DATA_IDENTIFIER);

                groups = await GroupSnippets.GetGroupsAsync();
            }
            ;

            //Pass the first group id from the list
            var groupId   = groups[0].Id;
            var groupName = await GroupSnippets.GetGroupAsync(groupId);

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

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

            return(groups != null);
        }