Tabnine Logo
WebChannel
Code IndexAdd Tabnine to your IDE (free)

How to use
WebChannel
in
org.dreamexposure.discal.core.object.web

Best Java code snippets using org.dreamexposure.discal.core.object.web.WebChannel (Showing top 6 results out of 315)

origin: NovaFox161/DisCal-Discord-Bot

channels.add(new WebChannel().fromJson(jChannels.getJSONObject(i)));
origin: NovaFox161/DisCal-Discord-Bot

public WebChannel getChannel(long id) {
  for (WebChannel wc : channels) {
    if (wc.getId() == id)
      return wc;
  }
  return null;
}
origin: NovaFox161/DisCal-Discord-Bot

public WebGuild fromGuild(IGuild g) {
  id = g.getStringID();
  name = g.getName();
  iconUrl = g.getIconURL();
  botNick = g.getClient().getOurUser().getNicknameForGuild(g);
  settings = DatabaseManager.getManager().getSettings(g.getLongID());
  //Handle lists and stuffs
  for (IRole r : g.getRoles()) {
    roles.add(new WebRole().fromRole(r, settings));
  }
  WebChannel all = new WebChannel();
  all.setId(0);
  all.setName("All Channels");
  all.setDiscalChannel(settings.getDiscalChannel().equalsIgnoreCase("all"));
  channels.add(all);
  for (IChannel c : g.getChannels()) {
    channels.add(new WebChannel().fromChannel(c, settings));
  }
  announcements.addAll(DatabaseManager.getManager().getAnnouncements(g.getLongID()));
  calendar = new WebCalendar().fromCalendar(DatabaseManager.getManager().getMainCalendar(Long.valueOf(id)), settings);
  return this;
}
origin: NovaFox161/DisCal-Discord-Bot

  wc.setDiscalChannel(false);
g.getChannel(Long.valueOf(queryParams.get("discal-channel"))).setDiscalChannel(true);
origin: NovaFox161/DisCal-Discord-Bot

  wc.setDiscalChannel(false);
g.getChannel(Long.valueOf(queryParams.get("discal-channel"))).setDiscalChannel(true);
origin: NovaFox161/DisCal-Discord-Bot

  wc.setDiscalChannel(false);
g.getChannel(Long.valueOf(queryParams.get("discal-channel"))).setDiscalChannel(true);
org.dreamexposure.discal.core.object.webWebChannel

Javadoc

Created by Nova Fox on 1/6/18. Website: www.cloudcraftgaming.com For Project: DisCal-Discord-Bot

Most used methods

  • setDiscalChannel
  • <init>
  • fromChannel
  • fromJson
  • getId
  • setId
  • setName
  • toJson

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now