Esempio n. 1
0
 public SINnerExtended(SINner sinner)
 {
     JsonSummary = "";
     //MySINner = null;
     Id       = Guid.NewGuid();
     SINnerId = sinner.Id;
 }
Esempio n. 2
0
 public SINnerSearchGroupMember(ApplicationUser user, SINner member)
 {
     //if (user == null)
     //    throw new ArgumentNullException(nameof(user));
     Username = user?.UserName;
     MySINner = member ?? throw new ArgumentNullException(nameof(member));
     if (user != null && user.FavoriteGroups?.Count > 0)
     {
         user.FavoriteGroups = user.FavoriteGroups.GroupBy(a => a.FavoriteGuid).Select(b => b.First()).ToList();
         IsFavorite          = user.FavoriteGroups.Any(a => a.FavoriteGuid == MySINner.Id);
     }
 }
Esempio n. 3
0
 private Tag TagConstructor(SINner sinner, Tag parent)
 {
     if (sinner != null)
     {
         this.SINnerId = sinner.Id;
     }
     this.ParentTag   = parent;
     this.TagName     = "";
     this.TagValue    = "";
     this.ParentTagId = Guid.Empty;
     if (parent != null)
     {
         this.ParentTagId = parent.Id;
     }
     this.Tags       = new List <Tag>();
     this.TagType    = TagValueEnum.unknown;
     IsUserGenerated = false;
     return(this);
 }
Esempio n. 4
0
 private Tag TagConstructor(SINner sinner, Tag parent)
 {
     if (sinner != null)
     {
         SINnerId = sinner.Id;
     }
     ParentTag     = parent;
     TagName       = string.Empty;
     TagValue      = string.Empty;
     TagValueFloat = null;
     ParentTagId   = Guid.Empty;
     if (parent != null)
     {
         ParentTagId = parent.Id;
     }
     Tags            = new List <Tag>();
     TagType         = TagValueEnum.unknown;
     IsUserGenerated = false;
     return(this);
 }
Esempio n. 5
0
 public SINnerSearchGroupMember(ApplicationUser user, SINner member)
 {
     if (user == null)
     {
         throw new ArgumentNullException(nameof(user));
     }
     Username = user.UserName;
     MySINner = member ?? throw new ArgumentNullException(nameof(member));
     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 == MySINner.Id))
     {
         IsFavorite = true;
     }
     else
     {
         IsFavorite = false;
     }
 }
Esempio n. 6
0
 public ResultSINnerPut(SINner sin)
 {
     MySINner = sin;
 }
Esempio n. 7
0
 public ResultSINnerPut()
 {
     MySINner = new SINner();
 }
Esempio n. 8
0
 public SINnerSearchGroupMember()
 {
     MySINner = new SINner();
 }
Esempio n. 9
0
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultSINnerPut.MySINner'

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'ResultSINnerPut.ResultSINnerPut()'
        public ResultSINnerPut()
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultSINnerPut.ResultSINnerPut()'
        {
            MySINner = new SINner();
        }
 public ResultSinnerGetSINById(SINner sinner)
 {
     MySINner = sinner;
 }
 public ResultSinnerGetSINById()
 {
     MySINner = new SINner();
 }
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'SINnerSearchGroupMember.Username'

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'SINnerSearchGroupMember.SINnerSearchGroupMember()'
        public SINnerSearchGroupMember()
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'SINnerSearchGroupMember.SINnerSearchGroupMember()'
        {
            MySINner = new SINner();
        }
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'ResultSinnerGetSINById.ResultSinnerGetSINById(SINner)'
        public ResultSinnerGetSINById(SINner sinner)
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultSinnerGetSINById.ResultSinnerGetSINById(SINner)'
        {
            MySINner = sinner;
        }
Esempio n. 14
0
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'Tag.Tag(SINner, Tag)'
        public Tag(SINner sinner, Tag parent)
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'Tag.Tag(SINner, Tag)'
        {
            TagConstructor(sinner, parent);
        }
Esempio n. 15
0
 public SINnerExtended()
 {
     JsonSummary = "";
     MySINner    = null;
     Id          = Guid.Empty;
 }
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupPutSINerInGroup.ResultGroupPutSINerInGroup(SINner)'
        public ResultGroupPutSINerInGroup(SINner sin)
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupPutSINerInGroup.ResultGroupPutSINerInGroup(SINner)'
        {
            MySINner = sin;
        }
Esempio n. 17
0
 public ResultGroupPutSINerInGroup()
 {
     MySINner = new SINner();
 }
Esempio n. 18
0
 public Tag(SINner sinner, Tag parent)
 {
     TagConstructor(sinner, parent);
 }
Esempio n. 19
0
 public ResultGroupPutSINerInGroup(SINner sin)
 {
     MySINner = sin;
 }