/* public byte[] GEN_nonce_hash(int id) { byte[] nonce_data = Common.ASUM(Common.ASUM(new_nonce, new byte[]{(byte) id}), auth_key_aux_hash); return Common.ASUB(Common.getSHA1(nonce_data), 4, 16); } */ private void send_accept() { if (msg_ack.size() == 0) return; /* Common.logInfo("send accept:"); for (int i = 0; i < msg_ack.size(); i++) Common.logInfo(" - " + getMessageTime(msg_ack.get(i)) + " " + msg_ack.get(i)); */ TL.Object msgs_ack = TL.newObject("msgs_ack", TL.newVector(msg_ack.toArray())); send(msgs_ack, true, false); msg_ack.clear(); }
public void api_contacts_importContacts(ArrayList<TL.Object> contacts, boolean replace) { api(null, null, "contacts.importContacts", TL.newVector(contacts.toArray()), replace); }
public static TL.Vector getVector() { ArrayList<TL.Object> res = new ArrayList<TL.Object>(); for (int i = 0; i < User.users.size(); i++) res.add(User.users.get(User.users.keyAt(i)).object); return TL.newVector(res.toArray()); }