/* tslint:disable */ /* eslint-disable */ /** * Nominex TMA API * API config for Nominex TMA * * The version of the OpenAPI document: 0.0.17 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface Task */ export interface Task { /** * * @type {string} * @memberof Task */ category?: TaskCategoryEnum; /** * * @type {string} * @memberof Task */ code?: string; /** * * @type {number} * @memberof Task */ completionTime?: number; /** * * @type {number} * @memberof Task */ claimTime?: number; /** * * @type {number} * @memberof Task */ startTime?: number; /** * * @type {string} * @memberof Task */ group?: TaskGroupEnum; /** * * @type {number} * @memberof Task */ reward?: number; } /** * @export */ export const TaskCategoryEnum = { NOMINEX: 'NOMINEX', PARTNER: 'PARTNER', TAPPING: 'TAPPING' } as const; export type TaskCategoryEnum = typeof TaskCategoryEnum[keyof typeof TaskCategoryEnum]; /** * @export */ export const TaskGroupEnum = { PLATFORM: 'PLATFORM', REFERRAL: 'REFERRAL', SOCIAL: 'SOCIAL' } as const; export type TaskGroupEnum = typeof TaskGroupEnum[keyof typeof TaskGroupEnum]; /** * Check if a given object implements the Task interface. */ export function instanceOfTask(value: object): boolean { let isInstance = true; return isInstance; } export function TaskFromJSON(json: any): Task { return TaskFromJSONTyped(json, false); } export function TaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): Task { if ((json === undefined) || (json === null)) { return json; } return { 'category': !exists(json, 'category') ? undefined : json['category'], 'code': !exists(json, 'code') ? undefined : json['code'], 'completionTime': !exists(json, 'completionTime') ? undefined : json['completionTime'], 'claimTime': !exists(json, 'claimTime') ? undefined : json['claimTime'], 'startTime': !exists(json, 'startTime') ? undefined : json['startTime'], 'group': !exists(json, 'group') ? undefined : json['group'], 'reward': !exists(json, 'reward') ? undefined : json['reward'], }; } export function TaskToJSON(value?: Task | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'category': value.category, 'code': value.code, 'completionTime': value.completionTime, 'claimTime': value.claimTime, 'startTime': value.startTime, 'group': value.group, 'reward': value.reward, }; }