//
//  ReqMessage.swift
//  Sailassist
//
//  Created by 三浦薫巳 on 2023/11/23.
//

import Foundation

struct ReqMessage : Codable {
    var shipId: Int = 0
    var messageId: String = ""  //固有ID
    var type: Int = 0           //0:テキスト / １：スタンプ
    var time: String = ""       //2023-11-02T05:25:49.4362123Z
    var location: Int = 0       //1:Shore / 2:Ship
    var from: String = ""       //投稿者名
    var fromId: String = ""     //ユーザーID
    var mode: Int = 0
    var message: String = ""    //テキスト
    var stampId: Int = 0        //スタンプ番号 0:Fire〜

    init(shipId: Int, messageId: String) {
        self.shipId = shipId
        self.messageId = messageId
    }
}
