Class StreamMessage
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.sync.v1.service.syncstream.StreamMessage
-
- All Implemented Interfaces:
Serializable
public class StreamMessage extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StreamMessageCreator
creator(String pathServiceSid, String pathStreamSid, Map<String,Object> data)
boolean
equals(Object o)
static StreamMessage
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a StreamMessage object using the provided ObjectMapper.static StreamMessage
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a StreamMessage object using the provided ObjectMapper.Map<String,Object>
getData()
String
getSid()
int
hashCode()
-
-
-
Method Detail
-
creator
public static StreamMessageCreator creator(String pathServiceSid, String pathStreamSid, Map<String,Object> data)
-
fromJson
public static StreamMessage fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a StreamMessage object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- StreamMessage object represented by the provided JSON
-
fromJson
public static StreamMessage fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a StreamMessage object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- StreamMessage object represented by the provided JSON
-
getSid
public final String getSid()
-
-