public class ParseNotificationResponse extends AbstractModel
header, skipSign
Constructor and Description |
---|
ParseNotificationResponse() |
ParseNotificationResponse(ParseNotificationResponse source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
EditMediaTask |
getEditMediaTaskEvent()
Get The information of a video editing task.
|
String |
getEventType()
Get The event type.
|
String |
getRequestId()
Get The unique request ID, which is returned for each request.
|
ScheduleTask |
getScheduleTaskEvent()
Get The information of a scheme.
|
String |
getSessionContext()
Get The source context which is used to pass through the user request information.
|
String |
getSessionId()
Get The ID used for deduplication.
|
String |
getSign()
Get The notification signature.
|
Long |
getTimestamp()
Get - The expiration time (Unix timestamp) of the notification's signature.
|
WorkflowTask |
getWorkflowTaskEvent()
Get The information of a video processing task.
|
void |
setEditMediaTaskEvent(EditMediaTask EditMediaTaskEvent)
Set The information of a video editing task.
|
void |
setEventType(String EventType)
Set The event type.
|
void |
setRequestId(String RequestId)
Set The unique request ID, which is returned for each request.
|
void |
setScheduleTaskEvent(ScheduleTask ScheduleTaskEvent)
Set The information of a scheme.
|
void |
setSessionContext(String SessionContext)
Set The source context which is used to pass through the user request information.
|
void |
setSessionId(String SessionId)
Set The ID used for deduplication.
|
void |
setSign(String Sign)
Set The notification signature.
|
void |
setTimestamp(Long Timestamp)
Set - The expiration time (Unix timestamp) of the notification's signature.
|
void |
setWorkflowTaskEvent(WorkflowTask WorkflowTaskEvent)
Set The information of a video processing task.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ParseNotificationResponse()
public ParseNotificationResponse(ParseNotificationResponse source)
public String getEventType()
public void setEventType(String EventType)
EventType
- The event type. Valid values:
public WorkflowTask getWorkflowTaskEvent()
public void setWorkflowTaskEvent(WorkflowTask WorkflowTaskEvent)
WorkflowTaskEvent
- The information of a video processing task. Information will be returned only if `EventType` is `WorkflowTask`.
Note: This field may return null, indicating that no valid values can be obtained.public EditMediaTask getEditMediaTaskEvent()
public void setEditMediaTaskEvent(EditMediaTask EditMediaTaskEvent)
EditMediaTaskEvent
- The information of a video editing task. Information will be returned only if `EventType` is `EditMediaTask`.
Note: This field may return null, indicating that no valid values can be obtained.public String getSessionId()
public void setSessionId(String SessionId)
SessionId
- The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or an empty string is entered, no deduplication will be performed.public String getSessionContext()
public void setSessionContext(String SessionContext)
SessionContext
- The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters.public ScheduleTask getScheduleTaskEvent()
public void setScheduleTaskEvent(ScheduleTask ScheduleTaskEvent)
ScheduleTaskEvent
- The information of a scheme. Information will be returned only if `EventType` is `ScheduleTask`.
Note: This field may return null, indicating that no valid values can be obtained.public Long getTimestamp()
public void setTimestamp(Long Timestamp)
Timestamp
- - The expiration time (Unix timestamp) of the notification's signature.
- By default, notifications sent by MPS expire after 10 minutes. If the expiration time specified has elapsed, a notification will be considered invalid. This can prevent replay attacks.
- The format of this parameter is a decimal Unix timestamp, i.e., the number of seconds that have elapsed since 00:00 (UTC/GMT time) on January 1, 1970.public String getSign()
public void setSign(String Sign)
Sign
- The notification signature. Sign = MD5 (Timestamp + NotifyKey) MPS concatenates `Timestamp` and `NotifyKey` in `TaskNotifyConfig` and calculates a signature using the MD5 algorithm. This signature is included in the notification sent to your backend server. If the signature in the notification matches your own calculation result, it indicates that the notification is from MPS.public String getRequestId()
public void setRequestId(String RequestId)
RequestId
- The unique request ID, which is returned for each request. RequestId is required for locating a problem.Copyright © 2024. All rights reserved.