Exemple #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;
        }
Exemple #2
0
        public frmMain()
        {
            InitializeComponent();
            imageList1.Images.Add(Properties.Resources.play);
            this.Icon = Properties.Resources.play_ico;

            m_vk = new VKSession(4368411);
        }
Exemple #3
0
 internal VKAPIStatusMethods(VKSession owner)
 {
     HostSession = owner;
 }
Exemple #4
0
 /// <summary>
 /// Constructs new class instance.
 /// </summary>
 /// <param name="self">Unique VKSession reference</param>
 public NetworkBase(VKSession self)
 {
     HostSession = self;
     MaxRequestsPerSecond = 3;
 }
Exemple #5
0
 /// <summary>
 /// Constructs new class instance
 /// </summary>
 /// <param name="hostSession"></param>
 public NetworkDefault(VKSession hostSession)
     : base(hostSession) { }
Exemple #6
0
 internal VKAPIAudioMethods(VKSession owner)
 {
     HostSession = owner;
 }
Exemple #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;
 }
Exemple #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;
 }