예제 #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;
        }
예제 #2
0
파일: frmMain.cs 프로젝트: CrackHD/vk9
        public frmMain()
        {
            InitializeComponent();
            imageList1.Images.Add(Properties.Resources.play);
            this.Icon = Properties.Resources.play_ico;

            m_vk = new VKSession(4368411);
        }
예제 #3
0
 internal VKAPIStatusMethods(VKSession owner)
 {
     HostSession = owner;
 }
예제 #4
0
파일: NetworkBase.cs 프로젝트: CrackHD/vk9
 /// <summary>
 /// Constructs new class instance.
 /// </summary>
 /// <param name="self">Unique VKSession reference</param>
 public NetworkBase(VKSession self)
 {
     HostSession = self;
     MaxRequestsPerSecond = 3;
 }
예제 #5
0
 /// <summary>
 /// Constructs new class instance
 /// </summary>
 /// <param name="hostSession"></param>
 public NetworkDefault(VKSession hostSession)
     : base(hostSession) { }
예제 #6
0
파일: AudioMethods.cs 프로젝트: CrackHD/vk9
 internal VKAPIAudioMethods(VKSession owner)
 {
     HostSession = owner;
 }
예제 #7
0
파일: VKSession.cs 프로젝트: CrackHD/vk9
 /// <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;
 }
예제 #8
0
파일: VKSession.cs 프로젝트: CrackHD/vk9
 /// <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;
 }