Ejemplo n.º 1
0
 public SINnerSearchGroup(SINnerGroup groupbyname, ApplicationUser user)
 {
     this.MyParentGroupId = groupbyname?.MyParentGroupId;
     this.Id = groupbyname?.Id;
     if (groupbyname != null)
     {
         this.IsPublic = groupbyname.IsPublic;
     }
     this.Groupname           = groupbyname?.Groupname;
     MyMembers                = new List <SINnerSearchGroupMember>();
     this.MyGroups            = new List <SINnerGroup>();
     MySINSearchGroups        = new List <SINnerSearchGroup>();
     this.MyAdminIdentityRole = groupbyname?.MyAdminIdentityRole;
     this.Language            = groupbyname?.Language;
     this.PasswordHash        = groupbyname?.PasswordHash;
     this.MySettings          = groupbyname?.MySettings;
     this.HasPassword         = this.PasswordHash?.Any() == true;
     IsFavorite               = false;
     if (user != null)
     {
         if (user.FavoriteGroups.Any() == false)
         {
             user.FavoriteGroups =
                 user.FavoriteGroups.GroupBy(a => a.FavoriteGuid).Select(b => b.First()).ToList();
         }
         if (user.FavoriteGroups.Any(a => a.FavoriteGuid == this.Id))
         {
             IsFavorite = true;
         }
         else
         {
             IsFavorite = false;
         }
     }
 }
Ejemplo n.º 2
0
 public SINnerSearchGroup(SINnerGroup groupbyname, ApplicationUser user)
 {
     MyParentGroupId = groupbyname?.MyParentGroupId;
     Id = groupbyname?.Id;
     if (groupbyname != null)
     {
         IsPublic = groupbyname.IsPublic;
     }
     Groupname           = groupbyname?.Groupname;
     MyMembers           = new List <SINnerSearchGroupMember>();
     MyGroups            = new List <SINnerGroup>();
     MySINSearchGroups   = new List <SINnerSearchGroup>();
     MyAdminIdentityRole = groupbyname?.MyAdminIdentityRole;
     Language            = groupbyname?.Language;
     PasswordHash        = groupbyname?.PasswordHash;
     MySettings          = groupbyname?.MySettings;
     HasPassword         = PasswordHash?.Length > 0;
     IsFavorite          = false;
     if (user != null)
     {
         if (user.FavoriteGroups.Count > 0)
         {
             user.FavoriteGroups = user.FavoriteGroups.GroupBy(a => a.FavoriteGuid).Select(b => b.First()).ToList();
         }
         IsFavorite = user.FavoriteGroups.Any(a => a.FavoriteGuid == Id);
     }
 }
Ejemplo n.º 3
0
 public SINnerSearchGroup(SINnerGroup groupbyname)
 {
     this.MyParentGroupId = groupbyname?.MyParentGroupId;
     this.Id = groupbyname?.Id;
     if (groupbyname != null)
     {
         this.IsPublic = groupbyname.IsPublic;
     }
     this.Groupname = groupbyname?.Groupname;
     MyMembers      = new List <SINnerSearchGroupMember>();
     this.MyGroups  = new List <SINnerGroup>();
 }
 public SINnerSearchGroup(SINnerGroup groupbyname)
 {
     this.MyParentGroupId = groupbyname?.MyParentGroupId;
     this.Id = groupbyname?.Id;
     if (groupbyname != null)
     {
         this.IsPublic = groupbyname.IsPublic;
     }
     this.Groupname           = groupbyname?.Groupname;
     MyMembers                = new List <SINnerSearchGroupMember>();
     this.MyGroups            = new List <SINnerGroup>();
     MySINSearchGroups        = new List <SINnerSearchGroup>();
     this.MyAdminIdentityRole = groupbyname.MyAdminIdentityRole;
     this.Language            = groupbyname.Language;
     this.PasswordHash        = groupbyname.PasswordHash;
     this.MySettings          = groupbyname.MySettings;
 }
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'SINnerSearchGroup.SINnerSearchGroup(SINnerGroup)'
        public SINnerSearchGroup(SINnerGroup groupbyname)
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'SINnerSearchGroup.SINnerSearchGroup(SINnerGroup)'
        {
            this.MyParentGroupId = groupbyname?.MyParentGroupId;
            this.Id = groupbyname?.Id;
            if (groupbyname != null)
            {
                this.IsPublic = groupbyname.IsPublic;
            }
            this.Groupname           = groupbyname?.Groupname;
            MyMembers                = new List <SINnerSearchGroupMember>();
            this.MyGroups            = new List <SINnerGroup>();
            MySINSearchGroups        = new List <SINnerSearchGroup>();
            this.MyAdminIdentityRole = groupbyname?.MyAdminIdentityRole;
            this.Language            = groupbyname?.Language;
            this.PasswordHash        = groupbyname?.PasswordHash;
            this.MySettings          = groupbyname?.MySettings;
        }
Ejemplo n.º 6
0
 public ResultGroupPostGroup()
 {
     MyGroup = new SINnerGroup();
 }
Ejemplo n.º 7
0
 public ResultSinnerGetSINnerGroupFromSINerById(SINnerGroup group)
 {
     MySINnerGroup = group;
 }
Ejemplo n.º 8
0
 public ResultSinnerGetSINnerGroupFromSINerById()
 {
     MySINnerGroup = new SINnerGroup();
 }
Ejemplo n.º 9
0
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'ResultSinnerGetSINnerGroupFromSINerById.ResultSinnerGetSINnerGroupFromSINerById(SINnerGroup)'
        public ResultSinnerGetSINnerGroupFromSINerById(SINnerGroup group)
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultSinnerGetSINnerGroupFromSINerById.ResultSinnerGetSINnerGroupFromSINerById(SINnerGroup)'
        {
            MySINnerGroup = group;
        }
 public ResultGroupPutGroupInGroup()
 {
     MyGroup = new SINnerGroup();
 }
Ejemplo n.º 11
0
 public ResultGroupGetGroupById(SINnerGroup group)
 {
     MyGroup = group;
 }
Ejemplo n.º 12
0
 public ResultGroupGetGroupById()
 {
     MyGroup = new SINnerGroup();
 }
Ejemplo n.º 13
0
 public SINnerSearchGroup(SINnerGroup groupbyname)
 {
     this.IsPublic  = groupbyname.IsPublic;
     this.Groupname = groupbyname.Groupname;
     MyMembers      = new List <SINnerSearchGroupMember>();
 }
Ejemplo n.º 14
0
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupGetGroupById.MyGroup'

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupGetGroupById.ResultGroupGetGroupById()'
        public ResultGroupGetGroupById()
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupGetGroupById.ResultGroupGetGroupById()'
        {
            MyGroup = new SINnerGroup();
        }
 public ResultGroupPutGroupInGroup(SINnerGroup group)
 {
     MyGroup = group;
 }
Ejemplo n.º 16
0
 public ResultGroupPostGroup(SINnerGroup group)
 {
     MyGroup = group;
 }
Ejemplo n.º 17
0
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupPostGroup.ResultGroupPostGroup(SINnerGroup)'
        public ResultGroupPostGroup(SINnerGroup group)
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupPostGroup.ResultGroupPostGroup(SINnerGroup)'
        {
            MyGroup = group;
        }
Ejemplo n.º 18
0
 public ResultGroupPutSetting(SINnerGroup group)
 {
     MyGroup = group;
 }