Work on add contact to contact list

This commit is contained in:
2025-06-12 02:01:06 +03:30
parent 3fdee8c102
commit fb19b55593
17 changed files with 1035 additions and 142 deletions
@@ -0,0 +1,23 @@
package org.to.telegramfinalproject.Models;
import org.json.JSONObject;
public class ContactRequestModel {
private String event;
private String contactId;
private String userId;
public ContactRequestModel(String event, String contactId, String userId) {
this.event = event;
this.contactId = contactId;
this.userId = userId;
}
public JSONObject toJson() {
JSONObject json = new JSONObject();
json.put("event", event);
json.put("contact_id", contactId);
json.put("user_id", userId);
return json;
}
}