Renamed every identifier according to new convention

This commit is contained in:
delvh
2020-03-26 16:06:18 +01:00
parent 5c2abe7c1c
commit 364ec6f04e
33 changed files with 124 additions and 90 deletions

View File

@@ -118,11 +118,11 @@ public class Client implements Closeable {
* this client.
*
* @param localDB the local database used to persist the current
* {@link IdGenerator}
* {@link IDGenerator}
* @param receivedMessageCache a message cache containing all unread messages
* from the server that can be relayed after
* initialization
* @throws IOException if no {@link IdGenerator} is present and none could be
* @throws IOException if no {@link IDGenerator} is present and none could be
* requested from the server
* @since Envoy Client v0.2-alpha
*/
@@ -143,7 +143,7 @@ public class Client implements Closeable {
receiver.registerProcessor(UserStatusChangeEvent.class, new UserStatusChangeProcessor(localDB));
// Process message ID generation
receiver.registerProcessor(IdGenerator.class, localDB::setIdGenerator);
receiver.registerProcessor(IDGenerator.class, localDB::setIDGenerator);
// Process contact searches
receiver.registerProcessor(ContactSearchResult.class, EventBus.getInstance()::dispatch);
@@ -161,7 +161,7 @@ public class Client implements Closeable {
});
// Request a generator if none is present or the existing one is consumed
if (!localDB.hasIdGenerator() || !localDB.getIdGenerator().hasNext()) requestIdGenerator();
if (!localDB.hasIDGenerator() || !localDB.getIDGenerator().hasNext()) requestIdGenerator();
}
/**
@@ -197,14 +197,14 @@ public class Client implements Closeable {
public void sendEvent(Event<?> evt) throws IOException { writeObject(evt); }
/**
* Requests a new {@link IdGenerator} from the server.
* Requests a new {@link IDGenerator} from the server.
*
* @throws IOException if the request does not reach the server
* @since Envoy Client v0.3-alpha
*/
public void requestIdGenerator() throws IOException {
logger.info("Requesting new id generator...");
writeObject(new IdGeneratorRequest());
writeObject(new IDGeneratorRequest());
}
/**