Esempio n. 1
0
 public static FollowMeBuilder FromModel(FollowMe model)
 {
     return(new FollowMeBuilder()
            .WithClientType(model.ClientType)
            .WithAdministrativeVersion(model.AdministrativeVersion)
            .WithCallsign(model.Callsign)
            .WithClientRating(model.ClientRating)
            .WithConnectionTime(model.ConnectionTime)
            .WithLocation(model.Location == null ? model.Location : (GPS)model.Location.Clone())
            .WithName(model.Name)
            .WithProtocol(model.Protocol)
            .WithServer(model.Server)
            .WithSoftwareName(model.SoftwareName)
            .WithSoftwareVersion(model.SoftwareVersion)
            .WithVID(model.VID));
 }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            if (ReferenceEquals(obj, null))
            {
                return(false);
            }

            if (ReferenceEquals(obj, this))
            {
                return(true);
            }

            FollowMe casted = obj as FollowMe;

            if (casted == null)
            {
                return(false);
            }

            return(base.Equals(obj));
        }