Exemplo n.º 1
0
        public override int GetHashCode()
        {
            var hash = 19;

            unchecked
            { // allow "wrap around" in the int
                hash = hash * 31 + ApiFeedback.GetHashCode();
                hash = hash * 31 + (UserProfile == null ? 0 : UserProfile.Email.GetHashCode());
                hash = hash * 31 + (UserProfile == null ? 0 : UserProfile.Username.GetHashCode());
                hash = hash * 31 + (UserProfile == null || UserProfile.AdditionalData == null ? 0 : UserProfile.AdditionalData.GetHashCode());
            }
            return(hash);
        }
Exemplo n.º 2
0
 public bool Equals(UserProfileResponse?input)
 {
     return(input != null &&
            ApiFeedback.Equals(input.ApiFeedback) &&
            (
                (UserProfile is null && input.UserProfile is null) ||
                (UserProfile != null &&
                 input.UserProfile != null &&
                 UserProfile.Username == input.UserProfile.Username &&
                 UserProfile.Email == input.UserProfile.Email &&
                 UserProfile.AdditionalData == input.UserProfile.AdditionalData)
            ));
 }
Exemplo n.º 3
0
 public UserProfileResponse(int httpCode, string?explanation)
 {
     ApiFeedback = new ApiFeedback(httpCode, explanation);
 }
Exemplo n.º 4
0
 public UserProfileResponse(int httpCode, UserProfile userProfile)
 {
     ApiFeedback = new ApiFeedback(httpCode);
     UserProfile = userProfile;
 }
Exemplo n.º 5
0
 public UserProfileResponse(int httpCode)
 {
     ApiFeedback = new ApiFeedback(httpCode);
 }