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

84 lines
1.9 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';
/**
*
* @export
* @interface ApiReaction
*/
export interface ApiReaction {
/**
*
* @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 {
return true;
}
export function ApiReactionFromJSON(json: any): ApiReaction {
return ApiReactionFromJSONTyped(json, false);
}
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 {
if (value == null) {
return value;
}
return {
'reaction': value['reaction'],
'recipient': value['recipient'],
'target_author': value['targetAuthor'],
'timestamp': value['timestamp'],
};
}