48 lines
1005 B
Java
48 lines
1005 B
Java
package com.discord.models.domain;
|
|
|
|
import com.discord.stores.StoreStream;
|
|
|
|
import java.io.IOException;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
import lanchon.dexpatcher.annotation.DexEdit;
|
|
import lanchon.dexpatcher.annotation.DexIgnore;
|
|
import lanchon.dexpatcher.annotation.DexWrap;
|
|
|
|
@DexEdit
|
|
public class ModelChannel implements Model {
|
|
|
|
// supplemental patch
|
|
|
|
@DexWrap
|
|
public Map<Long, ModelPermissionOverwrite> getPermissionOverwrites() {
|
|
|
|
// Allows us to see all channels
|
|
if (StoreStream.getUserSettings().getLeakChannels()) {
|
|
return EMPTY_PERMISSION_OVERWRITES;
|
|
}
|
|
|
|
return getPermissionOverwrites();
|
|
}
|
|
|
|
// end
|
|
|
|
// class setup
|
|
|
|
@DexIgnore
|
|
private static final Map<Long, ModelPermissionOverwrite> EMPTY_PERMISSION_OVERWRITES = new HashMap();
|
|
|
|
@DexIgnore
|
|
@Override
|
|
public void assignField(JsonReader jsonReader) throws IOException {
|
|
|
|
}
|
|
|
|
@DexIgnore
|
|
public static class RecipientNick {
|
|
|
|
}
|
|
|
|
}
|