Examples of Channel


Examples of org.pircbotx.Channel

     *            the item
     * @param m
     *            the m
     */
    private void operatorItems(final TreeItem item, Menu m) {
      final Channel thisChan = cChannel.getChannel();
      final User tUser = (User) item.getData();
      if (bot.getUserBot().getChannelsOpIn().contains(thisChan)) {
        if (!tUser.getChannelsOpIn().contains(thisChan)) {
          MenuItem mitem = new MenuItem(m, SWT.PUSH);
          mitem.setText("Op");
View Full Code Here

Examples of org.red5.server.net.rtmp.Channel

  /** {@inheritDoc} */
  public IMessageOutput getConsumerOutput(IClientStream stream) {
    IStreamCapableConnection streamConn = stream.getConnection();
    if (streamConn != null) {
      Channel data = new Channel(null, 4);
      Channel video = new Channel(null, 5);
      Channel audio = new Channel(null, 6);
      IPipe pipe = new InMemoryPushPushPipe();
      pipe.subscribe(new ConnectionConsumer(video, audio, data), null);
      return pipe;
    }
    return null;
View Full Code Here

Examples of org.sgx.yuigwt.yui.yql.api.weather.forecast.Channel

    YQL yql1 = Y.newYQL("select * from weather.forecast where location=90210", new YQLCallback() {     
      @Override
      public void call(YQLResult r) {
//        console.log(Y.JSON().stringify(r));
        WheatherForecastResult fresult = r.query().results().cast();
        Channel channel = fresult.channel();
        parent.append(
          "<a href=\""+channel.link()+"\">"+
            channel.title()+"</a> - Wind speed: "+channel.wind().speed()+" kph. " +
   
          //or not using any Java API at all, just the js object api 
          "Direction: "+r.query().results().objGetObj("channel").
            objGetObj("wind").objGetString("direction")+
           
View Full Code Here

Examples of org.simpleframework.transport.Channel

            name, total, count, sum / count, total / count, count / total + 1, count / (total / 1000)));
   }
  
   public void testHandler(Initiator handler, String payload, int dribble) throws Exception {     
      StreamCursor cursor = new StreamCursor(payload);
      Channel channel = new TestChannel(cursor, dribble);
     
      handler.start(channel);
   }
View Full Code Here

Examples of org.spoutcraft.launcher.Channel

        Compatibility.open(logDirectory);
      } catch (Exception e) {
        e.printStackTrace();
      }
    } else if (command.equals(SAVE_ACTION)) {
      Channel prev = Settings.getSpoutcraftChannel();
      String build = Settings.getSpoutcraftSelectedBuild();
      String minecraftVersion = Settings.getMinecraftVersion();
      boolean oldDebug = Settings.isDebugMode();

      // Save
View Full Code Here

Examples of org.xmatthew.spy2servers.rule.Channel

    return channels;
  }
 
  @SuppressWarnings("unchecked")
    protected Channel parseChannel(Element element) {
    Channel channel = new Channel();

    Set from = new HashSet();
    Set to = new HashSet();
   
    NodeList childNodes = element.getChildNodes();
    for (int i = 0; i < childNodes.getLength(); i++) {
      Node child = childNodes.item(i);
      if (child.getNodeType() == Node.ELEMENT_NODE) {
        String localName = child.getLocalName();
        if (FROM_ELEMENT.equals(localName)) {
          String ref = ((Element) child).getAttribute("value");
          from.add(ref);
        } else if (TO_ELEMENT.equals(localName)) {
          String ref = ((Element) child).getAttribute("value");
          to.add(ref);
        }
      }
    }   
    channel.setFrom(from);
    channel.setTo(to);
    return channel;
  }
View Full Code Here

Examples of ptolemy.codegen.kernel.CodeGeneratorHelper.Channel

        for (int j = 0; j < length; j++) {
            List sinkChannels = helper.getSinkChannels(port, j);

            for (int k = 0; k < sinkChannels.size(); k++) {
                Channel channel = (Channel) sinkChannels.get(k);
                IOPort sinkPort = channel.port;
                int sinkChannelNumber = channel.channelNumber;

                Object offsetObject = helper.getWriteOffset(sinkPort,
                        sinkChannelNumber);
View Full Code Here

Examples of se.despotify.client.protocol.channel.Channel

    ChannelCallback callback = new ChannelCallback();

    /* Send browse request. */

    /* Create channel and buffer. */
    Channel channel = new Channel("Browse-Channel", Channel.Type.TYPE_BROWSE, callback);
    ByteBuffer buffer = ByteBuffer.allocate(2 + 1 + 16 + 4);


    buffer.putShort((short) channel.getId());
    buffer.put((byte) BrowseType.artist.getValue());
    buffer.put(artist.getUUID());
    buffer.putInt(0); // unknown


View Full Code Here

Examples of silvertrout.Channel

            }
                for (FootballGame updatedGame : updatedGames) {
                    if (updatedGame.followers != null) {
                        String message = "";
                        HashSet<Channel>  channels = new HashSet<Channel>();
                        Channel channel = null;
                        for (Follower follower: updatedGame.followers){
                            message += follower.getName() + " ";
                            //channels.add(follower.getChannel());
                            channel = follower.getChannel();
                        }

                        message += updatedGame.gametime + " " + updatedGame.hometeam + " - " + updatedGame.awayteam + " " + updatedGame.result;
                        channel.sendPrivmsg(message);
                        ArrayList<FootballEvent> events = updatedGame.events;
                        for (FootballEvent event : events) {
                            message = event.matchtime + " ";
                            if (event.yellowcard) {
                                message += Color.yellow(" YELLOW CARD " + event.playername);
                            } else if (event.redcard) {
                                message += Color.red(" RED CARD " + event.playername);
                            } else if (event.goal) {
                                message += Color.green(" GOAL " + event.score + " " + event.playername);
                            }
                            channel.sendPrivmsg(message);
                        }
                    }
                }
            }
View Full Code Here

Examples of talkfeed.feed.Channel

   
    //check if blog has any updates
    BlogUpdateResult result = null;
   
    //fetch channel on the web via RSS
    Channel chan = FeedManager.loadRss(blog.getRss());
   
    if (chan != null){
      //update blog. Returns true if new items were added
      result = updateBlog(pm, blog, chan);
     
      //test url and title and correct if worng
      if (chan.getLink() != null && !chan.getLink().equalsIgnoreCase(blog.getLink())){
        blog.setLink(chan.getLink());
      }
     
      if (chan.getTitle() != null && !chan.getTitle().equalsIgnoreCase(blog.getTitle())){
        blog.setTitle(chan.getTitle());
      }
    }
   
    //Set last post entry date to blog
    if (result != null && result.isUpdate())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.