link-stack/packages/signal-api/models/ApiSendMessageV1.ts

96 lines
2.1 KiB
TypeScript
Raw Permalink Normal View History

/* tslint:disable */
/* eslint-disable */
/**
* Signal Cli REST API
* This is the Signal Cli REST API documentation.
*
* The version of the OpenAPI document: 1.0
2024-06-28 07:49:39 +02:00
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
2024-06-28 07:49:39 +02:00
import { mapValues } from "../runtime.js";
/**
2024-06-28 07:49:39 +02:00
*
* @export
* @interface ApiSendMessageV1
*/
export interface ApiSendMessageV1 {
2024-06-28 07:49:39 +02:00
/**
*
* @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.
*/
2024-06-28 07:49:39 +02:00
export function instanceOfApiSendMessageV1(
value: object,
): value is ApiSendMessageV1 {
return true;
}
export function ApiSendMessageV1FromJSON(json: any): ApiSendMessageV1 {
2024-06-28 07:49:39 +02:00
return ApiSendMessageV1FromJSONTyped(json, false);
}
2024-06-28 07:49:39 +02:00
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 {
2024-06-28 07:49:39 +02:00
if (value == null) {
return value;
}
return {
base64_attachment: value["base64Attachment"],
is_group: value["isGroup"],
message: value["message"],
number: value["number"],
recipients: value["recipients"],
};
}