/// <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; }
public frmMain() { InitializeComponent(); imageList1.Images.Add(Properties.Resources.play); this.Icon = Properties.Resources.play_ico; m_vk = new VKSession(4368411); }
internal VKAPIStatusMethods(VKSession owner) { HostSession = owner; }
/// <summary> /// Constructs new class instance. /// </summary> /// <param name="self">Unique VKSession reference</param> public NetworkBase(VKSession self) { HostSession = self; MaxRequestsPerSecond = 3; }
/// <summary> /// Constructs new class instance /// </summary> /// <param name="hostSession"></param> public NetworkDefault(VKSession hostSession) : base(hostSession) { }
internal VKAPIAudioMethods(VKSession owner) { HostSession = owner; }
/// <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; }
/// <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; }