Exemplo n.º 1
0
        internal PnP.Framework.Entities.GroupEntity Convert()
        {
            var entity = new PnP.Framework.Entities.GroupEntity()
            {
                GroupId         = Id,
                DisplayName     = DisplayName,
                Description     = Description,
                MailNickname    = MailNickname,
                Mail            = Mail,
                MailEnabled     = MailEnabled,
                SecurityEnabled = SecurityEnabled,
                GroupTypes      = GroupTypes
            };

            return(entity);
        }
Exemplo n.º 2
0
        internal static AzureADGroup CreateFrom(PnP.Framework.Entities.GroupEntity groupEntity)
        {
            var o = new AzureADGroup()
            {
                Id              = groupEntity.GroupId,
                DisplayName     = groupEntity.DisplayName,
                Description     = groupEntity.Description,
                MailNickname    = groupEntity.MailNickname,
                Mail            = groupEntity.Mail,
                MailEnabled     = groupEntity.MailEnabled,
                SecurityEnabled = groupEntity.SecurityEnabled,
                GroupTypes      = groupEntity.GroupTypes
            };

            return(o);
        }