PATCH | /sessions/{sessionId}/conference/members/{callSid} |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
/**
* Sets the conference member's hold and or mute status.
*/
// @Api(Description="Sets the conference member's hold and or mute status.")
class UpdateConferenceMemberStatus implements IConvertible
{
/**
* The ID of the active session
*/
// @ApiMember(Description="The ID of the active session")
String? sessionId;
/**
* The sid of the active call that is on the voice device
*/
// @ApiMember(Description="The sid of the active call that is on the voice device")
String? callSid;
/**
* Hold?
*/
// @ApiMember(Description="Hold?")
bool? hold;
/**
* Mute?
*/
// @ApiMember(Description="Mute?")
bool? mute;
UpdateConferenceMemberStatus({this.sessionId,this.callSid,this.hold,this.mute});
UpdateConferenceMemberStatus.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
sessionId = json['sessionId'];
callSid = json['callSid'];
hold = json['hold'];
mute = json['mute'];
return this;
}
Map<String, dynamic> toJson() => {
'sessionId': sessionId,
'callSid': callSid,
'hold': hold,
'mute': mute
};
getTypeName() => "UpdateConferenceMemberStatus";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: <String, TypeInfo> {
'UpdateConferenceMemberStatus': TypeInfo(TypeOf.Class, create:() => UpdateConferenceMemberStatus()),
});
Dart UpdateConferenceMemberStatus DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PATCH /sessions/{sessionId}/conference/members/{callSid} HTTP/1.1
Host: team.evovoice.io
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"sessionId":"String","callSid":"String","hold":false,"mute":false}