f7
f7 is a spreadsheet formula execution library
git clone https://git.vogt.world/f7.git
Log | Files | README.md | LICENSE.md
← All files
name: src/main/js/spreadsheet/rpcs/CreateCommentRPC.ts
-rw-r--r--
561
 1import { RPCName } from "./RPCName";
 2
 3export interface ICreateCommentRPC {
 4  type: RPCName.CREATE_COMMENT_RPC;
 5  id: string;
 6  name: string;
 7  value: string;
 8}
 9
10export class CreateCommentRPC implements ICreateCommentRPC {
11  type: RPCName.CREATE_COMMENT_RPC = RPCName.CREATE_COMMENT_RPC;
12  id: string;
13  name: string;
14  value: string;
15
16  constructor(id: string, name: string, value: string) {
17    this.id = id;
18    this.name = name;
19    this.value = value;
20  }
21
22  static from(i: ICreateCommentRPC) {
23    return new CreateCommentRPC(i.id, i.name, i.value);
24  }
25}