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> TryGetGroupsAsync() { var groups = await GroupSnippets.GetGroupsAsync(); return(groups != null); }