95 lines
2.1 KiB
TypeScript
95 lines
2.1 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* Signal Cli REST API
|
|
* This is the Signal Cli REST API documentation.
|
|
*
|
|
* The version of the OpenAPI document: 1.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
import { mapValues } from "../runtime.js";
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface ApiSendMessageV1
|
|
*/
|
|
export interface ApiSendMessageV1 {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ApiSendMessageV1
|
|
*/
|
|
base64Attachment?: string;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ApiSendMessageV1
|
|
*/
|
|
isGroup?: boolean;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ApiSendMessageV1
|
|
*/
|
|
message?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ApiSendMessageV1
|
|
*/
|
|
number?: string;
|
|
/**
|
|
*
|
|
* @type {Array<string>}
|
|
* @memberof ApiSendMessageV1
|
|
*/
|
|
recipients?: Array<string>;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the ApiSendMessageV1 interface.
|
|
*/
|
|
export function instanceOfApiSendMessageV1(
|
|
value: object,
|
|
): value is ApiSendMessageV1 {
|
|
return true;
|
|
}
|
|
|
|
export function ApiSendMessageV1FromJSON(json: any): ApiSendMessageV1 {
|
|
return ApiSendMessageV1FromJSONTyped(json, false);
|
|
}
|
|
|
|
export function ApiSendMessageV1FromJSONTyped(
|
|
json: any,
|
|
ignoreDiscriminator: boolean,
|
|
): ApiSendMessageV1 {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
base64Attachment:
|
|
json["base64_attachment"] == null ? undefined : json["base64_attachment"],
|
|
isGroup: json["is_group"] == null ? undefined : json["is_group"],
|
|
message: json["message"] == null ? undefined : json["message"],
|
|
number: json["number"] == null ? undefined : json["number"],
|
|
recipients: json["recipients"] == null ? undefined : json["recipients"],
|
|
};
|
|
}
|
|
|
|
export function ApiSendMessageV1ToJSON(value?: ApiSendMessageV1 | null): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
base64_attachment: value["base64Attachment"],
|
|
is_group: value["isGroup"],
|
|
message: value["message"],
|
|
number: value["number"],
|
|
recipients: value["recipients"],
|
|
};
|
|
}
|