Exemple #1
0
        public virtual void AddPrecombination(PreCombination pc)
        {
            ClosetOutfit co = new ClosetOutfit {
                PreCombination = pc, Closet = this
            };

            outfits.Add(co);
        }
Exemple #2
0
        public virtual void Rate(ClosetOutfit outfit, float ratingValue)
        {
            this.myRating = ratingValue;
            UserRating ur = new UserRating();

            ur.RatingValue  = ratingValue;
            ur.ClosetOutfit = outfit;
            this.userRatings.Add(ur);
        }
Exemple #3
0
        public virtual void Rate(ClosetOutfit outfit, float ratingValue, InvitedUser f)
        {
            FriendRating fr = new FriendRating();

            fr.Friend       = f;
            fr.RatingValue  = ratingValue;
            fr.ClosetOutfit = outfit;
            this.friendRatings.Add(fr);
            float average = 0;

            foreach (FriendRating r in this.friendRatings)
            {
                average += (float)r.RatingValue;
            }
            average = average / this.friendRatings.Count;
            this.FriendRatingAverage = average;
        }
Exemple #4
0
        public virtual object Clone()
        {
            ClosetOutfit copy = new ClosetOutfit();

            copy.Garment1       = this.Garment1;
            copy.Garment2       = this.Garment2;
            copy.Garment3       = this.Garment3;
            copy.Garment4       = this.Garment4;
            copy.Garment5       = this.Garment5;
            copy.Garment6       = this.Garment6;
            copy.Garment7       = this.Garment7;
            copy.Garment8       = this.Garment8;
            copy.Garment9       = this.Garment9;
            copy.Garment10      = this.Garment10;
            copy.Garment11      = this.Garment11;
            copy.Garment12      = this.Garment12;
            copy.Garment13      = this.Garment13;
            copy.PreCombination = this.PreCombination;
            copy.Status         = this.Status;
            copy.Seasons        = this.Seasons;
            copy.Visibility     = this.Visibility;
            return(copy);
        }
Exemple #5
0
 public virtual void ClearFavoriteOutfit()
 {
     this.favoriteOutfit = null;
 }
Exemple #6
0
 public virtual void SetFavoriteOutfit(ClosetOutfit favoriteOutfit)
 {
     this.favoriteOutfit = favoriteOutfit;
 }