public MeumProxyAddressGateway(string address, bool primaryAddress) : base(address, primaryAddress)
 {
     if (!MeumProxyAddressGateway.ValidateAddress(address))
     {
         throw new ArgumentOutOfRangeException(DataStrings.ExceptionInvalidMeumAddress(address ?? "<null>"), null);
     }
 }
 public static MeumProxyAddress CreateFromAddressString(string address, bool primaryAddress)
 {
     if (MeumProxyAddressE164.ValidateAddress(address))
     {
         return(new MeumProxyAddressE164(address, primaryAddress));
     }
     if (MeumProxyAddressGateway.ValidateAddress(address))
     {
         return(new MeumProxyAddressGateway(address, primaryAddress));
     }
     throw new ArgumentOutOfRangeException(DataStrings.ExceptionInvalidMeumAddress(address ?? "<null>"), null);
 }
 public static MeumProxyAddress CreateFromGatewayGuid(Guid gatewayObjectGuid, bool primaryAddress)
 {
     return(MeumProxyAddressGateway.CreateFromGuid(gatewayObjectGuid, primaryAddress));
 }