public static RemoteSession CreateSession(RemoteAccount remoteAccount) { var unifiAccount = remoteAccount as UnifiAccount; if (unifiAccount != null) { return(new UnifiSession(unifiAccount)); } throw new ArgumentException(); }
protected bool Equals(RemoteAccount other) { return(string.Equals(ServerUrl, other.ServerUrl) && string.Equals(Username, other.Username) && string.Equals(Password, other.Password)); }
protected RemoteSession(RemoteAccount account) { Account = account; }