messageValueType (property)
This message's value data type.
Syntax
@property (nonatomic,readwrite,assign,getter=messageValueType,setter=setMessageValueType:) int messageValueType; - (int)messageValueType; - (void)setMessageValueType:(int)newMessageValueType;
/* Possible Values */
MVT_NULL(0),
MVT_BOOLEAN(1),
MVT_UBYTE(2),
MVT_USHORT(3),
MVT_UINT(4),
MVT_ULONG(5),
MVT_BYTE(6),
MVT_SHORT(7),
MVT_INT(8),
MVT_LONG(9),
MVT_FLOAT(10),
MVT_DOUBLE(11),
MVT_DECIMAL(12),
MVT_CHAR(13),
MVT_TIMESTAMP(14),
MVT_UUID(15),
MVT_BINARY(16),
MVT_STRING(17),
MVT_SYMBOL(18),
MVT_JSON(19)
public var messageValueType: AmqpMessageValueTypes { get {...}
set {...} }
public enum AmqpMessageValueTypes : Int32 { case mvtNull = 0 case mvtBoolean = 1 case mvtUbyte = 2 case mvtUshort = 3 case mvtUint = 4 case mvtUlong = 5 case mvtByte = 6 case mvtShort = 7 case mvtInt = 8 case mvtLong = 9 case mvtFloat = 10 case mvtDouble = 11 case mvtDecimal = 12 case mvtChar = 13 case mvtTimestamp = 14 case mvtUuid = 15 case mvtBinary = 16 case mvtString = 17 case mvtSymbol = 18 case mvtJson = 19 }
Default Value
0
Remarks
This message's value data type.
This property specifies the data type of this message's MessageValue.
The table below shows the possible value types, their descriptions, and how to format the data assigned to MessageValue. All numeric value types should use their standard string formatting (except for the mvtDecimal (12) type, which should be specified as hex-encoded bytes).
Type | Description | Value Format |
mvtNull (0 - default) | Null | N/A (MessageValue is ignored) |
mvtBoolean (1) | Boolean | "True" or "False" |
mvtUbyte (2) | Unsigned byte | 0 to 255 |
mvtUshort (3) | Unsigned short | 0 to 65535 |
mvtUint (4) | Unsigned integer | 0 to 4294967295 |
mvtUlong (5) | Unsigned long | 0 to 18446744073709551615 |
mvtByte (6) | Byte | -128 to 127 |
mvtShort (7) | Short | -32768 to 32767 |
mvtInt (8) | Integer | -2147483648 to 2147483647 |
mvtLong (9) | Long | -9223372036854775808 to 9223372036854775807 |
mvtFloat (10) | Float | IEEE 754 32-bit floating point number |
mvtDouble (11) | Double | IEEE 754 64-bit floating point number |
mvtDecimal (12) | Decimal | Hex-encoded byte string |
mvtChar (13) | Char | Single character |
mvtTimestamp (14) | Timestamp | Number of milliseconds since the Unix epoch (January 1, 1970 00:00:00 UTC). |
mvtUuid (15) | UUID | Hex-encoded UUID in the form XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX (hyphens optional, case-insensitive) |
mvtBinary (16) | Binary data | Hex-encoded byte string |
mvtString (17) | String | String |
mvtSymbol (18) | Symbolic value | ASCII string |
mvtJson (19) | Composite data | Composite data JSON structured according to the schema shown in the SendMessage method's documentation |