Android Open Source - steamchat Message Debug Handler






From Project

Back to project page steamchat.

License

The source code is released under:

Apache License

If you think the Android project steamchat listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.kevelbreh.steamchat.steam.handler;
//from  w  w  w.  ja v a2s . co  m
/**
 * Created by kevin on 2014/08/18.
 */

import com.kevelbreh.steamchat.steam.SteamClient;
import com.kevelbreh.steamchat.steam.SteamServiceHandler;
import com.kevelbreh.steamchat.steam.language.Language;
import com.kevelbreh.steamchat.steam.network.packet.Packet;


import com.kevelbreh.steamchat.SteamChat;


/**
 * This class is responsible for interfacing with client friends specific events.
 */
public class MessageDebugHandler extends AEventHandler implements IEventHandler {

    public MessageDebugHandler(SteamClient client) {
        super(client);
    }

    @Override
    public SteamServiceHandler getHandler() {
        return new IncomingHandler();
    }

    @Override
    public void onEventReceived(SteamClient client, int type, Packet packet) {
        switch (type) {
            case 1:
                SteamChat.debug(this, "Received Multi");
                break;
            case 5501:
                SteamChat.debug(this, "Received ClientServersAvailable");
                break;
            case 751:
                SteamChat.debug(this, "Received ClientLogOnResponse");
                break;
            case 768:
                SteamChat.debug(this, "Received ClientAccountInfo");
                break;
            case 5456:
                SteamChat.debug(this, "Received ClientEmailAddrInfo");
                break;
            case 782:
                SteamChat.debug(this, "Received ClientVACBanStatus");
                break;
            case 767:
                SteamChat.debug(this, "Received ClientFriendsList");
                break;
            case 5553:
                SteamChat.debug(this, "Received ClientFriendsGroupsList");
                break;
            case 5587:
                SteamChat.debug(this, "Received ClientPlayerNicknameList");
                break;
            case 780:
                SteamChat.debug(this, "Received ClientLicenseList");
                break;
            case 798:
                SteamChat.debug(this, "Received ClientUpdateGuestPassesList");
                break;
            case 5528:
                SteamChat.debug(this, "Received ClientWalletInfoUpdate");
                break;
            case 779:
                SteamChat.debug(this, "Received ClientGameConnectTokens");
                break;
            case 850:
                SteamChat.debug(this, "Received ClientSessionToken");
                break;
            case 5430:
                SteamChat.debug(this, "Received ClientIsLimitedAccount");
                break;
            case 783:
                SteamChat.debug(this, "Received ClientCMList");
                break;
            case 880:
                SteamChat.debug(this, "Received ClientServerList");
                break;
            case 5480:
                SteamChat.debug(this, "Received ClientRequestedClientStats");
                break;
            case 5537:
                SteamChat.debug(this, "Received ClientUpdateMachineAuth");
                break;
            case 757:
                SteamChat.debug(this, "Received ClientLoggedOff");
                break;
            case 5463:
                SteamChat.debug(this, "Received ClientNewLoginKey");
                break;
            case 5510:
                SteamChat.debug(this, "Received ClientMarketingMessageUpdate2");
                break;
            case Language.Message.CLIENT_PERSONA_STATE:
                SteamChat.debug(this, "Received ClientPersonaState");
                 break;
            case Language.Message.CLIENT_FRIEND_MSG_INCOMING:
                SteamChat.debug(this, "Received ClientFriendMsgIncoming");
                break;
            case Language.Message.CLIENT_FRIEND_MESSAGE_ECHO_TO_SENDER:
                SteamChat.debug(this, "Received ClientFriendMsgToSender");
                break;
            default:
                SteamChat.debug(this, "Received " + type);
                break;

        }
    }

    @Override
    public void onConnected(SteamClient client) {

    }

    @Override
    public void onDisconnected(SteamClient client) {

    }

    @Override
    public void onAuthenticated(SteamClient client) {

    }

    /**
     * Get messages from service.
     */
    private class IncomingHandler extends SteamServiceHandler {

    }
}




Java Source Code List

com.kevelbreh.steamchat.SteamChat.java
com.kevelbreh.steamchat.account.AuthenticatorService.java
com.kevelbreh.steamchat.account.Authenticator.java
com.kevelbreh.steamchat.account.SteamAccount.java
com.kevelbreh.steamchat.activity.AuthenticationActivity.java
com.kevelbreh.steamchat.activity.ConversationActivity.java
com.kevelbreh.steamchat.activity.FriendsActivity.java
com.kevelbreh.steamchat.activity.InteractionsActivity.java
com.kevelbreh.steamchat.activity.LauncherActivity.java
com.kevelbreh.steamchat.activity.SettingsActivity.java
com.kevelbreh.steamchat.fragment.ConversationFragment.java
com.kevelbreh.steamchat.fragment.FriendsFragment.java
com.kevelbreh.steamchat.fragment.InteractionsFragment.java
com.kevelbreh.steamchat.fragment.SettingsFragment.java
com.kevelbreh.steamchat.provider.SteamProviderUtils.java
com.kevelbreh.steamchat.provider.SteamProvider.java
com.kevelbreh.steamchat.provider.content.InteractionContentItem.java
com.kevelbreh.steamchat.provider.content.PersonaContentItem.java
com.kevelbreh.steamchat.provider.content.UserContentItem.java
com.kevelbreh.steamchat.steam2.SteamConnection.java
com.kevelbreh.steamchat.steam2.SteamEventBus.java
com.kevelbreh.steamchat.steam2.SteamService.java
com.kevelbreh.steamchat.steam2.handler.ConnectionHandler.java
com.kevelbreh.steamchat.steam2.handler.FriendHandler.java
com.kevelbreh.steamchat.steam2.handler.MessageHandler.java
com.kevelbreh.steamchat.steam2.handler.UserHandler.java
com.kevelbreh.steamchat.steam2.packet.Packet.java
com.kevelbreh.steamchat.steam2.packet.ProtoPacket.java
com.kevelbreh.steamchat.steam.SteamClient.java
com.kevelbreh.steamchat.steam.SteamID.java
com.kevelbreh.steamchat.steam.SteamServiceHandler.java
com.kevelbreh.steamchat.steam.SteamService.java
com.kevelbreh.steamchat.steam.handler2.ConnectionHandler.java
com.kevelbreh.steamchat.steam.handler2.FriendHandler.java
com.kevelbreh.steamchat.steam.handler2.Handler.java
com.kevelbreh.steamchat.steam.handler2.UserHandler.java
com.kevelbreh.steamchat.steam.handler.AEventHandler.java
com.kevelbreh.steamchat.steam.handler.AuthenticationHandler.java
com.kevelbreh.steamchat.steam.handler.FriendsHandler.java
com.kevelbreh.steamchat.steam.handler.IEventHandler.java
com.kevelbreh.steamchat.steam.handler.IHandler.java
com.kevelbreh.steamchat.steam.handler.MessageDebugHandler.java
com.kevelbreh.steamchat.steam.language.Language.java
com.kevelbreh.steamchat.steam.language.Message.java
com.kevelbreh.steamchat.steam.network.TCPConnection.java
com.kevelbreh.steamchat.steam.network.packet.ChannelEncryptRequest.java
com.kevelbreh.steamchat.steam.network.packet.ChannelEncryptResponse.java
com.kevelbreh.steamchat.steam.network.packet.ChannelEncryptResult.java
com.kevelbreh.steamchat.steam.network.packet.ClientLogOnResponse.java
com.kevelbreh.steamchat.steam.network.packet.ClientLogOn.java
com.kevelbreh.steamchat.steam.network.packet.HeartBeat.java
com.kevelbreh.steamchat.steam.network.packet.MultiPacket.java
com.kevelbreh.steamchat.steam.network.packet.Packet.java
com.kevelbreh.steamchat.steam.network.packet.ProtoPacket.java
com.kevelbreh.steamchat.steam.proto.DescriptorsProto.java
com.kevelbreh.steamchat.steam.proto.EncryptedAppTicketProto.java
com.kevelbreh.steamchat.steam.proto.SteamMessagesBaseProto.java
com.kevelbreh.steamchat.steam.proto.SteamMessagesClientServerProto.java
com.kevelbreh.steamchat.steam.security.AsnKeyParser.java
com.kevelbreh.steamchat.steam.security.AsnParser.java
com.kevelbreh.steamchat.steam.security.BerDecodeException.java
com.kevelbreh.steamchat.steam.security.Cryptography.java
com.kevelbreh.steamchat.steam.security.NetEncryption.java
com.kevelbreh.steamchat.steam.security.PublicKey.java
com.kevelbreh.steamchat.steam.security.RSA.java
com.kevelbreh.steamchat.steam.util.BinaryReader.java
com.kevelbreh.steamchat.steam.util.BinaryWriter.java
com.kevelbreh.steamchat.steam.util.BitVector64.java
com.kevelbreh.steamchat.steam.util.JenkinsHash.java
com.kevelbreh.steamchat.util.AServiceActivity.java
com.kevelbreh.steamchat.util.Dump.java
com.kevelbreh.steamchat.util.MiscUtils.java
com.kevelbreh.steamchat.widget.adapter.ChatAdapter.java
com.kevelbreh.steamchat.widget.adapter.ConversationAdapter.java
com.kevelbreh.steamchat.widget.adapter.FriendAdapter.java
com.kevelbreh.steamchat.widget.view.AvatarView.java
com.kevelbreh.steamchat.widget.view.FriendInteractionsView.java