model

hacker98 avatarhacker98
Public10/08/2024 12:39 PM5 snippets
SentRequest.txt
ReceiveRequest.txt
Myinfo.txt
Mess.txt
Conversation.txt

SentRequest

10/08/2024 12:44 PM
SentRequest.txt
package com.example.chatappdemo.model;

public class SentRequest {
    private String IPSent;
    private String name;
    private String status;

    public SentRequest() {}

    public SentRequest(String IPSent, String name, String status) {

ReceiveRequest

10/08/2024 12:44 PM
ReceiveRequest.txt
package com.example.chatappdemo.model;

public class ReceiveRequest {
    private String IPRequest;
    private String name;
    private String publicKey;

    public ReceiveRequest(String IPRequest, String name, String publicKey) {
        this.IPRequest = IPRequest;
        this.name = name;

Myinfo

10/08/2024 12:43 PM
Myinfo.txt
package com.example.chatappdemo.model;

public class Myinfo {
    private String myIP;
    private String name;
    private String publicKey;
    private String privateKey;
    public Myinfo(){}
    public Myinfo(String myIP, String name, String publicKey, String privateKey) {
        this.myIP = myIP;

Mess

10/08/2024 12:43 PM
Mess.txt
package com.example.chatappdemo.model;

import java.time.LocalDateTime;

public class Mess {
    private int mess_id;
    private int conver_id;
    private String sender_ip;
    private String mess_text;
    private String time;

Conversation

10/08/2024 12:43 PM
Conversation.txt
package com.example.chatappdemo.model;

import java.time.LocalDateTime;

public class Conversation {
    private int conver_id;
    private String IPreceive;
    private String name;
    private String last_mess;
    private String last_mess_time;