Ejemplo n.º 1
0
        public async Task GetTeamAsync(string teamId, OnGetTeamCompleted onGetTeamCompleted)
        {
            GraphServiceClient graphClient = AuthenticationHelper.Instance.GetAuthenticatedClient();

            if (graphClient != null)
            {
                var group = await graphClient.Groups[teamId].Request().GetAsync();

                var team = new TeamEntity
                {
                    Id          = group.Id,
                    DisplayName = group.DisplayName,
                    Description = group.Description,
                    IsArchived  = group.IsArchived
                };

                onGetTeamCompleted(team);
            }
        }
Ejemplo n.º 2
0
 public void GetTeam(string teamId, OnGetTeamCompleted onGetTeamCompleted)
 {
 }
Ejemplo n.º 3
0
 public void GetTeam(string teamId, OnGetTeamCompleted onGetTeamCompleted)
 {
     System.Threading.Tasks.Task.Run(
         () => GetTeamAsync(teamId, onGetTeamCompleted));
 }