< Summary

Information
Class: /home/wethinkcode/student_work/csharp/GroupProject/super-cool-group/weshare-qa/GeneratedApiCode/src/Applications.WeShare.Swagger/Model/LoginDTO.cs
Assembly: Default
File(s): /home/wethinkcode/student_work/csharp/GroupProject/super-cool-group/weshare-qa/GeneratedApiCode/src/Applications.WeShare.Swagger/Model/LoginDTO.cs
Line coverage
12%
Covered lines: 5
Uncovered lines: 35
Coverable lines: 40
Total lines: 128
Line coverage: 12.5%
Branch coverage
0%
Covered branches: 0
Total branches: 8
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

File(s)

/home/wethinkcode/student_work/csharp/GroupProject/super-cool-group/weshare-qa/GeneratedApiCode/src/Applications.WeShare.Swagger/Model/LoginDTO.cs

#LineLine coverage
 1/*
 2 * WeShare API
 3 *
 4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 5 *
 6 * The version of the OpenAPI document: 1.0
 7 * Generated by: https://github.com/openapitools/openapi-generator.git
 8 */
 9
 10
 11using System;
 12using System.Collections;
 13using System.Collections.Generic;
 14using System.Collections.ObjectModel;
 15using System.Linq;
 16using System.IO;
 17using System.Runtime.Serialization;
 18using System.Text;
 19using System.Text.RegularExpressions;
 20using Newtonsoft.Json;
 21using Newtonsoft.Json.Converters;
 22using Newtonsoft.Json.Linq;
 23using System.ComponentModel.DataAnnotations;
 24using OpenAPIDateConverter = Applications.WeShare.Swagger.Client.OpenAPIDateConverter;
 25
 26namespace Applications.WeShare.Swagger.Model
 27{
 28    /// <summary>
 29    /// LoginDTO
 30    /// </summary>
 31    [DataContract(Name = "LoginDTO")]
 32    public partial class LoginDTO : IEquatable<LoginDTO>, IValidatableObject
 33    {
 34        /// <summary>
 35        /// Initializes a new instance of the <see cref="LoginDTO" /> class.
 36        /// </summary>
 37        /// <param name="email">email.</param>
 238        public LoginDTO(string email = default(string))
 239        {
 240            this.Email = email;
 241        }
 42
 43        /// <summary>
 44        /// Gets or Sets Email
 45        /// </summary>
 46        [DataMember(Name = "email", EmitDefaultValue = false)]
 447        public string Email { get; set; }
 48
 49        /// <summary>
 50        /// Returns the string presentation of the object
 51        /// </summary>
 52        /// <returns>String presentation of the object</returns>
 53        public override string ToString()
 054        {
 055            StringBuilder sb = new StringBuilder();
 056            sb.Append("class LoginDTO {\n");
 057            sb.Append("  Email: ").Append(Email).Append("\n");
 058            sb.Append("}\n");
 059            return sb.ToString();
 060        }
 61
 62        /// <summary>
 63        /// Returns the JSON string presentation of the object
 64        /// </summary>
 65        /// <returns>JSON string presentation of the object</returns>
 66        public virtual string ToJson()
 067        {
 068            return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
 069        }
 70
 71        /// <summary>
 72        /// Returns true if objects are equal
 73        /// </summary>
 74        /// <param name="input">Object to be compared</param>
 75        /// <returns>Boolean</returns>
 76        public override bool Equals(object input)
 077        {
 078            return this.Equals(input as LoginDTO);
 079        }
 80
 81        /// <summary>
 82        /// Returns true if LoginDTO instances are equal
 83        /// </summary>
 84        /// <param name="input">Instance of LoginDTO to be compared</param>
 85        /// <returns>Boolean</returns>
 86        public bool Equals(LoginDTO input)
 087        {
 088            if (input == null)
 089            {
 090                return false;
 91            }
 092            return
 093                (
 094                    this.Email == input.Email ||
 095                    (this.Email != null &&
 096                    this.Email.Equals(input.Email))
 097                );
 098        }
 99
 100        /// <summary>
 101        /// Gets the hash code
 102        /// </summary>
 103        /// <returns>Hash code</returns>
 104        public override int GetHashCode()
 0105        {
 106            unchecked // Overflow is fine, just wrap
 0107            {
 0108                int hashCode = 41;
 0109                if (this.Email != null)
 0110                {
 0111                    hashCode = (hashCode * 59) + this.Email.GetHashCode();
 0112                }
 0113                return hashCode;
 114            }
 0115        }
 116
 117        /// <summary>
 118        /// To validate all properties of the instance
 119        /// </summary>
 120        /// <param name="validationContext">Validation context</param>
 121        /// <returns>Validation Result</returns>
 122        public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validation
 0123        {
 0124            yield break;
 125        }
 126    }
 127
 128}