コード例 #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>();
 }
コード例 #4
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>();
     MySINSearchGroups        = new List <SINnerSearchGroup>();
     this.MyAdminIdentityRole = groupbyname.MyAdminIdentityRole;
     this.Language            = groupbyname.Language;
     this.PasswordHash        = groupbyname.PasswordHash;
     this.MySettings          = groupbyname.MySettings;
 }
コード例 #5
0
#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;
        }
コード例 #10
0
 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();
        }
コード例 #15
0
 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;
 }