| Package | com.acapela.vaas.advanced |
| Class | public class MessageManager |
| Inheritance | MessageManager flash.events.EventDispatcher |
| Method | Defined by | ||
|---|---|---|---|
|
deleteMessage(msgID:String, comment:String, timeOut:uint = 5000, where:String = ""):void
command function: this function will delete the sound from the main storage on the server
and will activate a listening process to treate and dispatch the result to the appropriate callbacks.
| MessageManager | ||
|
notifyMessage(msgID:String, reason:String, comment:String, timeOut:uint = 5000, where:String = ""):void
command function: use this function to notify service manager (acapela or its customer) that there is an issue with a message.
| MessageManager | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when a message was successfuly deleted. | MessageManager | |||
| Dispatched when a message was successfuly notified. | MessageManager | |||
| Constant | Defined by | ||
|---|---|---|---|
| CONTENT_ISSUE : String = "CONTENT" [static]
Content issus reason to notify a message.
| MessageManager | ||
| CONTENT_NOTIF_LOC : String = "CONTENT_NOTIF" [static]
Content notified location : storage location of the message notified for an inappropriate/illegal content.
| MessageManager | ||
| CT_BUG_NOTIF_LOC : String = "CT_BUG_NOTIF" [static]
Content bug notified location : storage location of the mispronunced message
| MessageManager | ||
| DEFAULT_LOC : String = "" [static]
Default location - will let the service choose the location message to save/delete/notify.
| MessageManager | ||
| DELETED_LOC : String = "DELETED" [static]
Deleted location : storage location of the deleted messages.
| MessageManager | ||
| MISC_BUG_NOTIF_LOC : String = "MISC_BUG_NOTIF" [static]
storage location of the message notified for another type of issue
| MessageManager | ||
| MISC_ISSUE : String = "MISC_ISSUE" [static]
misc issus reason to notify a message.
| MessageManager | ||
| SPEECH_ISSUE : String = "CT_BUG" [static]
speech issus reason to notify a message.
| MessageManager | ||
| UNSPECIFIED : String = "" [static]
Default reason.
| MessageManager | ||
| deleteMessage | () | method |
public function deleteMessage(msgID:String, comment:String, timeOut:uint = 5000, where:String = ""):voidcommand function: this function will delete the sound from the main storage on the server and will activate a listening process to treate and dispatch the result to the appropriate callbacks. Result is exactly the same as reobtainSound. So you may receive the URL of the DELETED sound if you registered the corresponding callback, please make sure it will not cause some trouble.
ParametersmsgID:String — msgID : the String received by the msgIDGenerated callback as a result of the initial generation.
|
|
comment:String — comment : provide a string describing this operation context (reason, author, ...).
|
|
timeOut:uint (default = 5000) — timeOut : Optionnal. The duration in milliseconds that the component can wait for a server answer (5000ms = 5 secs by default).
|
|
where:String (default = "") — where : Optionnal. Suitable only when doing an advanced moderation of your service. Contact support for further details.
|
| notifyMessage | () | method |
public function notifyMessage(msgID:String, reason:String, comment:String, timeOut:uint = 5000, where:String = ""):voidcommand function: use this function to notify service manager (acapela or its customer) that there is an issue with a message. will store the sound and the associated and will activate a listening process to treate and dispatch the result to the appropriate callbacks. Result is exactly the same as reobtainSound. So you may receive the URL of the NOTIFIED sound if you registered the corresponding callback, please make sure it will not cause some trouble.
ParametersmsgID:String — msgID : the String received by the msgIDGenerated callback as a result of the initial generation.
|
|
reason:String — reason : use one of the following predifined constant to give the reason of the notification: UNSPECIFIED, CONTENT, SPEECH_ISSUE, MISC_ISSUE
|
|
comment:String — comment : provide a string describing containing details about this operation(detailled reason, author, ...).
|
|
timeOut:uint (default = 5000) — timeOut : Optionnal. The duration in milliseconds that the component can wait for a server answer (5000ms = 5 secs by default).
|
|
where:String (default = "") — where : Optionnal. Suitable only when doing an advanced moderation of your service. Contact support for further details.
|
| messageDeleted | event |
com.acapela.vaas.advanced.events.MessageEvent
com.acapela.vaas.advanced.events.MessageEvent.MESSAGE_DELETED
Dispatched when a message was successfuly deleted.
The MessageEvent.MESSAGE_DELETED constant defines the value of the type property of an messageDeleted event object.
This event has the following properties:
| Property | Description |
|---|---|
| bubbles | false |
| cancelable | false |
| message | The message to this event |
| target | The MessageManager instance that generated it. |
Message instance using message property of this event.
| messageNotified | event |
com.acapela.vaas.advanced.events.MessageEvent
com.acapela.vaas.advanced.events.MessageEvent.MESSAGE_NOTIFIED
Dispatched when a message was successfuly notified.
The MessageEvent.MESSAGE_NOTIFIED constant defines the value of the type property of an messageNotified event object.
This event has the following properties:
| Property | Description |
|---|---|
| bubbles | false |
| cancelable | false |
| message | The message to this event |
| target | The MessageManager instance that generated it. |
Message instance using message property of this event.
| CONTENT_ISSUE | constant |
public static const CONTENT_ISSUE:String = "CONTENT"Content issus reason to notify a message. This message will be copied and notified in CONTENT_NOTIF_LOC storage location.
| CONTENT_NOTIF_LOC | constant |
public static const CONTENT_NOTIF_LOC:String = "CONTENT_NOTIF"Content notified location : storage location of the message notified for an inappropriate/illegal content.
| CT_BUG_NOTIF_LOC | constant |
public static const CT_BUG_NOTIF_LOC:String = "CT_BUG_NOTIF"Content bug notified location : storage location of the mispronunced message
| DEFAULT_LOC | constant |
public static const DEFAULT_LOC:String = ""Default location - will let the service choose the location message to save/delete/notify.
| DELETED_LOC | constant |
public static const DELETED_LOC:String = "DELETED"Deleted location : storage location of the deleted messages.
| MISC_BUG_NOTIF_LOC | constant |
public static const MISC_BUG_NOTIF_LOC:String = "MISC_BUG_NOTIF"storage location of the message notified for another type of issue
| MISC_ISSUE | constant |
public static const MISC_ISSUE:String = "MISC_ISSUE"misc issus reason to notify a message. This message will be copied and notified in MISC_BUG_NOTIF_LOC storage location.
| SPEECH_ISSUE | constant |
public static const SPEECH_ISSUE:String = "CT_BUG"speech issus reason to notify a message. This message will be copied and notified in CT_BUG_NOTIF_LOC storage location.
| UNSPECIFIED | constant |
public static const UNSPECIFIED:String = ""Default reason.