A DTMF (telephone-event) tone. More...
Instance Methods | |
(FMLiveSwitchDtmfTone *) | - clone |
Clones this instance. More... | |
(FMLiveSwitchDtmfTone *) | - cloneWithDuration: |
Clones this instance. More... | |
(NSString *) | - description |
Serializes to a string. More... | |
(int) | - duration |
Gets the duration in milliseconds. More... | |
(bool) | - end |
Gets whether this is the final tone raised for the current value. More... | |
(instancetype) | - initWithValue: |
Initializes a new instance of the FMLiveSwitchDtmfTone class. More... | |
(instancetype) | - initWithValue:duration: |
Initializes a new instance of the FMLiveSwitchDtmfTone class. More... | |
(NSString *) | - toJson |
Serializes to JSON. More... | |
(FMLiveSwitchDtmfPacket *) | - toPacketWithClockRate: |
Serializes to a packet. More... | |
(NSString *) | - value |
Gets the value. More... | |
Class Methods | |
(FMLiveSwitchDtmfTone *) | + a |
Gets A tone. More... | |
(NSString *) | + aValue |
Gets the A value ("A"). More... | |
(FMLiveSwitchDtmfTone *) | + b |
Gets the B tone. More... | |
(NSString *) | + bValue |
Gets the B value ("B"). More... | |
(FMLiveSwitchDtmfTone *) | + c |
Gets the C tone. More... | |
(NSString *) | + cValue |
Gets the C value ("C"). More... | |
(FMLiveSwitchDtmfTone *) | + d |
Gets the D tone. More... | |
(NSString *) | + dValue |
Gets the D value ("D"). More... | |
(FMLiveSwitchDtmfTone *) | + eight |
Gets the eight tone. More... | |
(NSString *) | + eightValue |
Gets the eight value ("8"). More... | |
(FMLiveSwitchDtmfTone *) | + empty |
Gets the empty tone. More... | |
(NSString *) | + emptyValue |
Gets the empty value (""). More... | |
(FMLiveSwitchDtmfTone *) | + five |
Gets the five tone. More... | |
(NSString *) | + fiveValue |
Gets the five value ("5"). More... | |
(FMLiveSwitchDtmfTone *) | + four |
Gets the four tone. More... | |
(NSString *) | + fourValue |
Gets the four value ("4"). More... | |
(NSMutableArray *) | + fromJsonArrayWithTonesJson: |
Deserializes an array from JSON. More... | |
(FMLiveSwitchDtmfTone *) | + fromJsonWithToneJson: |
Deserializes from JSON. More... | |
(FMLiveSwitchDtmfTone *) | + fromPacket:clockRate: |
Deserializes from a packet. More... | |
(NSMutableArray *) | + fromToneString: |
Converts a DTMF tone string into an array of tones. More... | |
(NSMutableArray *) | + fromToneString:duration: |
Converts a DTMF tone string into an array of tones. More... | |
(NSMutableArray *) | + fromToneString:duration:interToneGap: |
Converts a DTMF tone string into an array of tones. More... | |
(FMLiveSwitchDtmfTone *) | + hash |
Gets the hash tone. More... | |
(NSString *) | + hashValue |
Gets the hash value ("#"). More... | |
(FMLiveSwitchDtmfTone *) | + nine |
Gets the nine tone. More... | |
(NSString *) | + nineValue |
Gets the nine value ("9"). More... | |
(FMLiveSwitchDtmfTone *) | + one |
Gets the one tone. More... | |
(NSString *) | + oneValue |
Gets the one value ("1"). More... | |
(FMLiveSwitchDtmfTone *) | + pause |
Gets the pause tone. More... | |
(int) | + pauseDuration |
Gets the pause duration in milliseconds (2000). More... | |
(NSString *) | + pauseValue |
Gets the pause value (","). More... | |
(FMLiveSwitchDtmfTone *) | + seven |
Gets the seven tone. More... | |
(NSString *) | + sevenValue |
Gets the seven value ("7"). More... | |
(FMLiveSwitchDtmfTone *) | + six |
Gets the six tone. More... | |
(NSString *) | + sixValue |
Gets the six value ("6"). More... | |
(FMLiveSwitchDtmfTone *) | + star |
Gets the star tone. More... | |
(NSString *) | + starValue |
Gets the star value ("*"). More... | |
(FMLiveSwitchDtmfTone *) | + three |
Gets the three tone. More... | |
(NSString *) | + threeValue |
Gets the three value ("3"). More... | |
(NSString *) | + toJsonArrayWithTones: |
Serializes an array to JSON. More... | |
(NSString *) | + toJsonWithTone: |
Serializes to JSON. More... | |
(FMLiveSwitchDtmfTone *) | + tone: |
Initializes a new instance of the FMLiveSwitchDtmfTone class. More... | |
(FMLiveSwitchDtmfTone *) | + tone:duration: |
Initializes a new instance of the FMLiveSwitchDtmfTone class. More... | |
(NSString *) | + toToneStringWithTones: |
Converts an array of DTMF tones into a tone string. More... | |
(FMLiveSwitchDtmfTone *) | + two |
Gets the two tone. More... | |
(NSString *) | + twoValue |
Gets the two value ("2"). More... | |
(FMLiveSwitchDtmfTone *) | + zero |
Gets the zero tone. More... | |
(NSString *) | + zeroValue |
Gets the zero value ("0"). More... | |
A DTMF (telephone-event) tone.
+ (FMLiveSwitchDtmfTone*) a |
Gets A tone.
+ (NSString*) aValue |
Gets the A value ("A").
+ (FMLiveSwitchDtmfTone*) b |
Gets the B tone.
+ (NSString*) bValue |
Gets the B value ("B").
+ (FMLiveSwitchDtmfTone*) c |
Gets the C tone.
- (FMLiveSwitchDtmfTone*) clone |
Clones this instance.
- (FMLiveSwitchDtmfTone*) cloneWithDuration: | (int) | duration |
Clones this instance.
duration | The new duration. |
+ (NSString*) cValue |
Gets the C value ("C").
+ (FMLiveSwitchDtmfTone*) d |
Gets the D tone.
- (NSString*) description |
Serializes to a string.
- (int) duration |
Gets the duration in milliseconds.
+ (NSString*) dValue |
Gets the D value ("D").
+ (FMLiveSwitchDtmfTone*) eight |
Gets the eight tone.
+ (NSString*) eightValue |
Gets the eight value ("8").
+ (FMLiveSwitchDtmfTone*) empty |
Gets the empty tone.
+ (NSString*) emptyValue |
Gets the empty value ("").
- (bool) end |
Gets whether this is the final tone raised for the current value.
+ (FMLiveSwitchDtmfTone*) five |
Gets the five tone.
+ (NSString*) fiveValue |
Gets the five value ("5").
+ (FMLiveSwitchDtmfTone*) four |
Gets the four tone.
+ (NSString*) fourValue |
Gets the four value ("4").
+ (NSMutableArray*) fromJsonArrayWithTonesJson: | (NSString *) | tonesJson |
Deserializes an array from JSON.
tonesJson | The JSON. |
+ (FMLiveSwitchDtmfTone*) fromJsonWithToneJson: | (NSString *) | toneJson |
Deserializes from JSON.
toneJson | The JSON. |
+ (FMLiveSwitchDtmfTone*) fromPacket: | (FMLiveSwitchDtmfPacket *) | packet | |
clockRate: | (int) | clockRate | |
Deserializes from a packet.
packet | The packet. |
clockRate | The clock rate. |
+ (NSMutableArray*) fromToneString: | (NSString *) | toneString |
Converts a DTMF tone string into an array of tones.
Each tone will have a duration of 100ms and an inter-tone gap of 100ms.
toneString | The tone string. |
+ (NSMutableArray*) fromToneString: | (NSString *) | toneString | |
duration: | (int) | duration | |
Converts a DTMF tone string into an array of tones.
Each tone will have an inter-tone gap of 100ms.
toneString | The tone string. |
duration | The duration, in milliseconds (minimum of 40, maximum of 2,000). |
+ (NSMutableArray*) fromToneString: | (NSString *) | toneString | |
duration: | (int) | duration | |
interToneGap: | (int) | interToneGap | |
Converts a DTMF tone string into an array of tones.
toneString | The tone string. |
duration | The duration, in milliseconds (minimum of 40, maximum of 2,000). |
interToneGap | The time between tones, in milliseconds (minimum of 40). |
+ (FMLiveSwitchDtmfTone*) hash |
Gets the hash tone.
+ (NSString*) hashValue |
Gets the hash value ("#").
- (instancetype) initWithValue: | (NSString *) | value |
Initializes a new instance of the FMLiveSwitchDtmfTone class.
value | The value. |
- (instancetype) initWithValue: | (NSString *) | value | |
duration: | (int) | duration | |
Initializes a new instance of the FMLiveSwitchDtmfTone class.
value | The value. |
duration | The duration. |
+ (FMLiveSwitchDtmfTone*) nine |
Gets the nine tone.
+ (NSString*) nineValue |
Gets the nine value ("9").
+ (FMLiveSwitchDtmfTone*) one |
Gets the one tone.
+ (NSString*) oneValue |
Gets the one value ("1").
+ (FMLiveSwitchDtmfTone*) pause |
Gets the pause tone.
+ (int) pauseDuration |
Gets the pause duration in milliseconds (2000).
+ (NSString*) pauseValue |
Gets the pause value (",").
+ (FMLiveSwitchDtmfTone*) seven |
Gets the seven tone.
+ (NSString*) sevenValue |
Gets the seven value ("7").
+ (FMLiveSwitchDtmfTone*) six |
Gets the six tone.
+ (NSString*) sixValue |
Gets the six value ("6").
+ (FMLiveSwitchDtmfTone*) star |
Gets the star tone.
+ (NSString*) starValue |
Gets the star value ("*").
+ (FMLiveSwitchDtmfTone*) three |
Gets the three tone.
+ (NSString*) threeValue |
Gets the three value ("3").
- (NSString*) toJson |
Serializes to JSON.
+ (NSString*) toJsonArrayWithTones: | (NSMutableArray *) | tones |
Serializes an array to JSON.
tones | The array. |
+ (NSString*) toJsonWithTone: | (FMLiveSwitchDtmfTone *) | tone |
Serializes to JSON.
+ (FMLiveSwitchDtmfTone*) tone: | (NSString *) | value |
Initializes a new instance of the FMLiveSwitchDtmfTone class.
value | The value. |
+ (FMLiveSwitchDtmfTone*) tone: | (NSString *) | value | |
duration: | (int) | duration | |
Initializes a new instance of the FMLiveSwitchDtmfTone class.
value | The value. |
duration | The duration. |
- (FMLiveSwitchDtmfPacket*) toPacketWithClockRate: | (int) | clockRate |
Serializes to a packet.
clockRate | The clock rate. |
+ (NSString*) toToneStringWithTones: | (NSMutableArray *) | tones |
Converts an array of DTMF tones into a tone string.
This discards duration and inter-tone gap data.
tones | The tones. |
+ (FMLiveSwitchDtmfTone*) two |
Gets the two tone.
+ (NSString*) twoValue |
Gets the two value ("2").
- (NSString*) value |
Gets the value.
+ (FMLiveSwitchDtmfTone*) zero |
Gets the zero tone.
+ (NSString*) zeroValue |
Gets the zero value ("0").