internal UserComponent(SharpShark p_Library)
     : base(p_Library)
 {
     Data        = null;
     CountryData = null;
     SessionID   = CommunicationToken = null;
 }
        public RemoraComponent(SharpShark p_Library)
            : base(p_Library)
        {
            m_QueuedMessages = new Queue <object>();

            m_Created         = false;
            m_PendingCreation = false;
        }
        internal BroadcastComponent(SharpShark p_Library)
            : base(p_Library)
        {
            Data          = null;
            SpecialGuests = new List <long>();

            CurrentBroadcastStatus      = BroadcastStatus.Idle;
            ChatEnabled                 = true;
            CurrentBroadcastCategoryTag = null;

            SuggestionsEnabled = true;
        }
        internal ChatComponent(SharpShark p_Library)
            : base(p_Library)
        {
            m_ReconnectionTimer = new Timer();
            ChatServers         = new Dictionary <string, int>();

            m_SocketClient = new Client();

            m_SocketClient.OnConnected        += OnConnected;
            m_SocketClient.OnDisconnected     += OnDisconnected;
            m_SocketClient.OnMessageProcessed += OnMessageProcessed;

            m_Handlers        = new Dictionary <string, Action <SharkResponseMessage> >();
            m_ShouldReconnect = true;
            m_Reconnect       = false;

            RegisterHandlers();
        }
Exemple #5
0
 internal SharkComponent(SharpShark p_Library)
 {
     Library = p_Library;
 }
 protected EventsComponent(SharpShark p_Library)
     : base(p_Library)
 {
     m_EventHandlers = new Dictionary <int, List <Action <SharkEvent> > >();
 }
 internal QueueComponent(SharpShark p_Library)
     : base(p_Library)
 {
     CurrentQueue = new List <QueueSongData>();
 }
        public RequestDispatcher(SharpShark p_Library, String p_SecretKey)
        {
            Library = p_Library;

            m_SecretKey = p_SecretKey;
        }
Exemple #9
0
 public static void FetchKey()
 {
     // Fetch secret keys.
     SecretKey = Beakynator.FetchSecretKey();
     Library   = new SharpShark(SecretKey);
 }
Exemple #10
0
 public static void FetchKey()
 {
     // Fetch secret keys.
     SecretKey = Beakynator.FetchSecretKey();
     Library = new SharpShark(SecretKey);
 }
 internal SongsComponent(SharpShark p_Library)
     : base(p_Library)
 {
 }
 internal SearchComponent(SharpShark p_Library)
     : base(p_Library)
 {
 }