Exemplo n.º 1
0
        /// <summary>
        /// TODO
        /// </summary>
        /// <param name="token"></param>
        /// <param name="key"></param>
        /// <param name="avatar"></param>
        public async Task SetProfileAvatar(CancellationToken token, byte[] key, StreamDetails avatar)
        {
            ProfileAvatarData profileAvatarData = null;

            if (avatar != null)
            {
                profileAvatarData = new ProfileAvatarData(avatar.InputStream, avatar.Length, avatar.ContentType, new ProfileCipherOutputStreamFactory(key));
            }
            await PushServiceSocket.SetProfileAvatar(token, profileAvatarData);
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                string[] settings = new string[3];
                settings[0] = usernameTextbox.Text;
                settings[1] = oauthTextbox.Text;
                settings[2] = channelTextbox.Text;
                File.WriteAllLines("ModuleBot.login", settings);
            }
            catch
            { }

            BotLogin          = new StreamDetails(usernameTextbox.Text, oauthTextbox.Text, channelTextbox.Text);
            this.DialogResult = DialogResult.OK;
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                string[] settings = new string[3];
                settings[0] = usernameTextbox.Text;
                settings[1] = oauthTextbox.Text;
                settings[2] = channelTextbox.Text;
                File.WriteAllLines("ModuleBot.login", settings);
            }
            catch
            { }

            BotLogin = new StreamDetails(usernameTextbox.Text, oauthTextbox.Text, channelTextbox.Text);
            this.DialogResult = DialogResult.OK;
        }