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

86 lines
1.8 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 ApiReaction
*/
export interface ApiReaction {
2024-06-28 07:49:39 +02:00
/**
*
* @type {string}
* @memberof ApiReaction
*/
reaction?: string;
/**
*
* @type {string}
* @memberof ApiReaction
*/
recipient?: string;
/**
*
* @type {string}
* @memberof ApiReaction
*/
targetAuthor?: string;
/**
*
* @type {number}
* @memberof ApiReaction
*/
timestamp?: number;
}
/**
* Check if a given object implements the ApiReaction interface.
*/
export function instanceOfApiReaction(value: object): value is ApiReaction {
2024-06-28 07:49:39 +02:00
return true;
}
export function ApiReactionFromJSON(json: any): ApiReaction {
2024-06-28 07:49:39 +02:00
return ApiReactionFromJSONTyped(json, false);
}
2024-06-28 07:49:39 +02:00
export function ApiReactionFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): ApiReaction {
if (json == null) {
return json;
}
return {
reaction: json["reaction"] == null ? undefined : json["reaction"],
recipient: json["recipient"] == null ? undefined : json["recipient"],
targetAuthor:
json["target_author"] == null ? undefined : json["target_author"],
timestamp: json["timestamp"] == null ? undefined : json["timestamp"],
};
}
export function ApiReactionToJSON(value?: ApiReaction | null): any {
2024-06-28 07:49:39 +02:00
if (value == null) {
return value;
}
return {
reaction: value["reaction"],
recipient: value["recipient"],
target_author: value["targetAuthor"],
timestamp: value["timestamp"],
};
}