/// <summary> /// Constructor for typical forwarding call when destination is not a phone number. /// </summary> /// <param name="mode">Forwarding mode</param> /// <param name="destinationCountryCode">Destination country code, zero for default</param> /// <param name="destinationType">Destination address type</param> /// <param name="destinationAddress">Destination address</param> public ForwardInfo(ForwardingMode mode, int destinationCountryCode, AddressType destinationType, string destinationAddress) { ForwardMode = mode; DestinationCountryCode = destinationCountryCode; DestinationAddressType = destinationType; DestinationAddress = destinationAddress; }
/// <summary> /// Specific forwarding constructor /// </summary> /// <param name="mode">Forwarding mode - must be BusyNoAnswerSpecific, NoAnswerSpecific, UnconditionalSpecific or BusySpecific</param> /// <param name="callerAddress">Caller address</param> /// <param name="destinationCountryCode">Destination country code, zero for default</param> /// <param name="destinationAddress">Destination address</param> public ForwardInfo(ForwardingMode mode, string callerAddress, int destinationCountryCode, string destinationAddress) { ForwardMode = mode; CallerAddress = callerAddress; DestinationCountryCode = destinationCountryCode; DestinationAddress = destinationAddress; }
/// <summary> /// Constructor for specific forwarding call when caller or destination is not a phone number. /// </summary> /// <param name="mode">Forwarding mode - must be BusyNoAnswerSpecific, NoAnswerSpecific, UnconditionalSpecific or BusySpecific</param> /// <param name="callerType">Caller address type</param> /// <param name="callerAddress">Caller address</param> /// <param name="destinationCountryCode">Destination country code, zero for default</param> /// <param name="destinationType">Destination address type</param> /// <param name="destinationAddress">Destination address</param> public ForwardInfo(ForwardingMode mode, AddressType callerType, string callerAddress, int destinationCountryCode, AddressType destinationType, string destinationAddress) { ForwardMode = mode; if (Enum.IsDefined(typeof(AddressType), callerType)) { CallerAddressType = callerType; } CallerAddress = callerAddress; DestinationCountryCode = destinationCountryCode; if (Enum.IsDefined(typeof(AddressType), destinationType)) { DestinationAddressType = destinationType; } DestinationAddress = destinationAddress; }
public static ATCommand Set(ForwardingReason reason, ForwardingMode mode, string phoneNumber, ForwardingPhoneNumberType phoneNumberType, ForwardingClass forwardingClass) { return(new ATCommand(COMMAND, reason, mode, phoneNumber, phoneNumberType, forwardingClass)); }