Exemplo n.º 1
0
        /// <summary>
        /// Initializes direct login manager instance for specified VKSession
        /// </summary>
        /// <param name="authSession"></param>
        public DirectAuthManager(VKSession authSession)
        {
            if (authSession == null)
                throw new ArgumentNullException("authSession");

            this.AuthSession = authSession;
        }
Exemplo n.º 2
0
        public frmMain()
        {
            InitializeComponent();
            imageList1.Images.Add(Properties.Resources.play);
            this.Icon = Properties.Resources.play_ico;

            m_vk = new VKSession(4368411);
        }
Exemplo n.º 3
0
 internal VKAPIStatusMethods(VKSession owner)
 {
     HostSession = owner;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructs new class instance.
 /// </summary>
 /// <param name="self">Unique VKSession reference</param>
 public NetworkBase(VKSession self)
 {
     HostSession = self;
     MaxRequestsPerSecond = 3;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Constructs new class instance
 /// </summary>
 /// <param name="hostSession"></param>
 public NetworkDefault(VKSession hostSession)
     : base(hostSession) { }
Exemplo n.º 6
0
 internal VKAPIAudioMethods(VKSession owner)
 {
     HostSession = owner;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Triggers ValidationNeeded event.
 /// </summary>
 public static VK.ValidationNeededEventArgs TriggerValidationNeeded(VKSession self, Uri redirectUri, VK.SecurityFlag scope = VK.SecurityFlag.None)
 {
     var eventData = new VK.ValidationNeededEventArgs(redirectUri, scope != VK.SecurityFlag.None ? scope : self.SecuritySettings);
     if (self.ValidationNeeded != null)
         self.ValidationNeeded(self, eventData);
     return eventData;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Triggers CaptchaNeeded event.
 /// </summary>
 public static VK.CaptchaEventArgs TriggerCaptchaNeeded(VKSession self, Uri img, string sid)
 {
     var eventData = new VK.CaptchaEventArgs(img, sid);
     if (self.CaptchaNeeded != null)
         self.CaptchaNeeded(self, eventData);
     return eventData;
 }