Skip to content

Commit

Permalink
[Enhancement] Extra properties when retrieving team (#1825)
Browse files Browse the repository at this point in the history
* Added extra team properties

* Revert change
  • Loading branch information
milanholemans committed May 3, 2022
1 parent b0bcff8 commit bb73d93
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
22 changes: 19 additions & 3 deletions src/Commands/Model/Teams/Team.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System.Collections.Generic;
using PnP.PowerShell.Commands.Model.Graph;
using PnP.PowerShell.Commands.Utilities.JSON;
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using PnP.PowerShell.Commands.Model.Graph;

namespace PnP.PowerShell.Commands.Model.Teams
{
Expand Down Expand Up @@ -84,8 +86,22 @@ public class Team
[JsonConverter(typeof(JsonStringEnumConverter))]
public GroupVisibility Visibility { get; set; }

#endregion
/// <summary>
/// Web URL of the team
/// </summary>
public string WebUrl { get; set; }

/// <summary>
/// Internal unique ID of the team
/// </summary>
public string InternalId { get; set; }

/// <summary>
/// Date when the team was created
/// </summary>
public DateTimeOffset? CreatedDateTime { get; set; }

#endregion
}

/// <summary>
Expand Down
7 changes: 1 addition & 6 deletions src/Commands/Model/Teams/TeamFunSettings.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using System.Text.Json.Serialization;

namespace PnP.PowerShell.Commands.Model.Teams
{
Expand Down

0 comments on commit bb73d93

Please sign in to comment.