UNPKG

react-native-studia

Version:
25 lines (16 loc) 500 B
// @flow 'use strict' import type { StudiaManager } from './StudiaManager' import type { NativeMessage } from './StudiaModules' export class Message implements NativeMessage { _manager: StudiaManager token: string message: string date: string isDelivered: boolean isDropped: boolean myMessage: boolean constructor(nativeMessage: NativeMessage, manager: StudiaManager) { Object.assign(this, nativeMessage, { _manager: manager }) } }