Пример #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;
         }
     }
 }
Пример #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);
     }
 }
Пример #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;
        }
Пример #6
0
 public ResultGroupPostGroup()
 {
     MyGroup = new SINnerGroup();
 }
Пример #7
0
 public ResultSinnerGetSINnerGroupFromSINerById(SINnerGroup group)
 {
     MySINnerGroup = group;
 }
Пример #8
0
 public ResultSinnerGetSINnerGroupFromSINerById()
 {
     MySINnerGroup = new SINnerGroup();
 }
Пример #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();
 }
Пример #11
0
 public ResultGroupGetGroupById(SINnerGroup group)
 {
     MyGroup = group;
 }
Пример #12
0
 public ResultGroupGetGroupById()
 {
     MyGroup = new SINnerGroup();
 }
Пример #13
0
 public SINnerSearchGroup(SINnerGroup groupbyname)
 {
     this.IsPublic  = groupbyname.IsPublic;
     this.Groupname = groupbyname.Groupname;
     MyMembers      = new List <SINnerSearchGroupMember>();
 }
Пример #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;
 }
Пример #16
0
 public ResultGroupPostGroup(SINnerGroup group)
 {
     MyGroup = group;
 }
Пример #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;
        }
Пример #18
0
 public ResultGroupPutSetting(SINnerGroup group)
 {
     MyGroup = group;
 }