Package net.bnubot.util

Examples of net.bnubot.util.BNetInputStream.readDWord()


         * (DWORD) Number of keys
         * (DWORD) Request ID
         * (STRING[]) Requested Key Values
         */
        int numAccounts = is.readDWord();
        int numKeys = is.readDWord();
        @SuppressWarnings("unchecked")
        List<Object> keys = (List<Object>)CookieUtility.destroyCookie(is.readDWord());

        if(numAccounts != 1)
          throw new IllegalStateException("SID_READUSERDATA with numAccounts != 1");
View Full Code Here


         * (STRING[]) Requested Key Values
         */
        int numAccounts = is.readDWord();
        int numKeys = is.readDWord();
        @SuppressWarnings("unchecked")
        List<Object> keys = (List<Object>)CookieUtility.destroyCookie(is.readDWord());

        if(numAccounts != 1)
          throw new IllegalStateException("SID_READUSERDATA with numAccounts != 1");

        UserProfile up = new UserProfile((String)keys.remove(0));
View Full Code Here

        for(int i = 0; i < numEntries; i++) {
          String uAccount = is.readNTString();
          byte uStatus = is.readByte();
          byte uLocation = is.readByte();
          int uProduct = is.readDWord();
          String uLocationName = is.readNTStringUTF8();

          entries[i] = new FriendEntry(uAccount, uStatus, uLocation, uProduct, uLocationName);
        }
View Full Code Here

         * (STRING) Location
         */
        byte fEntry = is.readByte();
        byte fLocation = is.readByte();
        byte fStatus = is.readByte();
        int fProduct = is.readDWord();
        String fLocationName = is.readNTStringUTF8();

        dispatchFriendsUpdate(new FriendEntry(fEntry, fStatus, fLocation, fProduct, fLocationName));
        break;
      }
View Full Code Here

         * (STRING) Location
         */
        String fAccount = is.readNTString();
        byte fLocation = is.readByte();
        byte fStatus = is.readByte();
        int fProduct = is.readDWord();
        String fLocationName = is.readNTStringUTF8();

        dispatchFriendsAdd(new FriendEntry(fAccount, fStatus, fLocation, fProduct, fLocationName));
        break;
      }
View Full Code Here

        recvClanInfo(is);
        break;
      }

      case SID_CLANFINDCANDIDATES: {
        Object cookie = CookieUtility.destroyCookie(is.readDWord());
        byte status = is.readByte();
        byte numCandidates = is.readByte();
        List<String> candidates = new ArrayList<String>(numCandidates);
        for(int i = 0 ; i < numCandidates; i++)
          candidates.add(is.readNTString());
View Full Code Here

        }
        break;
      }
      // SID_CLANINVITEMULTIPLE
      case SID_CLANCREATIONINVITATION: {
        int cookie = is.readDWord();
        int clanTag = is.readDWord();
        String clanName = is.readNTString();
        String inviter = is.readNTString();

        ClanCreationInvitationCookie c = new ClanCreationInvitationCookie(this, cookie, clanTag, clanName, inviter);
View Full Code Here

        break;
      }
      // SID_CLANINVITEMULTIPLE
      case SID_CLANCREATIONINVITATION: {
        int cookie = is.readDWord();
        int clanTag = is.readDWord();
        String clanName = is.readNTString();
        String inviter = is.readNTString();

        ClanCreationInvitationCookie c = new ClanCreationInvitationCookie(this, cookie, clanTag, clanName, inviter);
        dispatchClanCreationInvitation(c);
View Full Code Here

      // SID_CLANDISBAND
      // SID_CLANMAKECHIEFTAIN

      // SID_CLANQUITNOTIFY
      case SID_CLANINVITATION: {
        Object cookie = CookieUtility.destroyCookie(is.readDWord());
        byte status = is.readByte();

        String result;
        switch(status) {
        case 0x00:
View Full Code Here

         * (DWORD) Cookie
         * (DWORD) Clan tag
         * (STRING) Clan name
         * (STRING) Inviter
         */
        int cookie = is.readDWord();
        int clanTag = is.readDWord();
        String clanName = is.readNTString();
        String inviter = is.readNTString();

        ClanInvitationCookie c = new ClanInvitationCookie(this, cookie, clanTag, clanName, inviter);
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.