当前位置: 首页>>代码示例>>C#>>正文


C# SkypeKit.SktAccount类代码示例

本文整理汇总了C#中SkypeKit.SktAccount的典型用法代码示例。如果您正苦于以下问题:C# SktAccount类的具体用法?C# SktAccount怎么用?C# SktAccount使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SktAccount类属于SkypeKit命名空间,在下文中一共展示了SktAccount类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnAccountStatus

        // This will fire whenever account (login) status changes value.
        public void OnAccountStatus(SktAccount sender, SktEvents.OnAccountStatusArgs e)
        {
            textBox1.AppendText(e.value.ToString() + '\n');

            if (e.value == SktAccount.STATUS.LOGGED_IN)
            {
                textBox1.AppendText(String.Format("Hello {0}! You should see this account as online on Skype, in a few seconds.\n", username));
            }

            if (e.value == SktAccount.STATUS.LOGGED_OUT)
            {
                textBox1.AppendText("Login failed because of " + sender.P_LOGOUTREASON + '\n');
            }
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:15,代码来源:Login.cs

示例2: OnAccountStatus

        public void OnAccountStatus(SktAccount sender, SktEvents.OnAccountStatusArgs e)
        {
            feedbackLabel.Text = "Login in progress.. " + sender.P_STATUS.ToString();
            if (e.value == SktAccount.STATUS.LOGGED_IN)
            {
                feedbackLabel.Text = "";
                UpdateContactListBox();
            }

            if (e.value == SktAccount.STATUS.LOGGED_OUT)
            {
                DialogResult result = MessageBox.Show(this,
                    "Login failed because of " + sender.P_LOGOUTREASON.ToString(), "Login has failed",
                    MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1,MessageBoxOptions.RightAlign);
            }
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:16,代码来源:NewContacts.cs

示例3: OnAccountStatus

        // Logging account status, and when it goes LOGGED_IN, populate our listbox.
        public void OnAccountStatus(SktAccount sender, SktEvents.OnAccountStatusArgs e)
        {
            this.messageLog.AppendText(e.value.ToString() + "\r\n");

            if (e.value == SktAccount.STATUS.LOGGED_IN)
            {
                this.messageLog.AppendText("Retrieving conversation list..\r\n");

                conversationList = skype.GetConversationList(SktConversation.LIST_TYPE.INBOX_CONVERSATIONS);

                foreach (SktConversation conversation in conversationList)
                {
                    // Because we overrided SktConverstaion.ToString, we can add
                    // Conversation objects directly, to a standard ListBox.
                    this.conversationListBox.Items.Add(conversation);
                }
            }

            if (e.value == SktAccount.STATUS.LOGGED_OUT)
            {
                this.messageLog.AppendText("Login failed because of " + sender.P_LOGOUTREASON + "\r\n");
            }
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:24,代码来源:Conversations.cs

示例4: example

 /**  Returns state of a given account capability. Takes Contact class CAPABILITY property as input argument
   and returns its state and expiration timestamp where appropriate. For example (C++ wrapper, with other
   wrappers the syntax may vary but the idea is the same) SktMyAccount.GetCapabilityStatus(Contact.CAPABILITY_SKYPEOUT,
   Cap, T); will return SktAccount.CAPABILITY_EXISTS if local account has SkypeOut enabled.
 @param [out] status
 @param [out] expiryTimestamp
 @param [in] capability
  */
 public void GetCapabilityStatus(
 out SktAccount.CAPABILITYSTATUS status,
 out DateTime               expiryTimestamp,
 SktContact.CAPABILITY      capability)
 {
     if (skypeRef.logging) skypeRef.Log("Executing Account.GetCapabilityStatus");
     uint RequestId = skypeRef.encoder.AddMethodHeader(ClassId, 21, OID);
     skypeRef.encoder.AddEnumParam(1, (uint)capability);
     skypeRef.transport.SubmitMethodRequest (RequestId);
     Dictionary<uint, uint> tagMap = new Dictionary<uint, uint> { {1, 1}, {2, 2} };
     object[] args = new object[2];
     args[0] = 0;
     args[1] = 0;
     skypeRef.decoder.DecodeMethodResponseArguments(2, ref args, new uint[2]{0,0}, ref tagMap, "SktAccount.GetCapabilityStatus");
     status = (SktAccount.CAPABILITYSTATUS)args[0];
     expiryTimestamp = (DateTime)args[1];
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:25,代码来源:skt_skypekit_2010.cs

示例5: FireOnAccountTimezone

 internal void FireOnAccountTimezone(SktAccount sender, uint value)
 {
     if (OnAccountTimezone == null) return; // Event not assigned
     OnAccountTimezoneArgs args = new OnAccountTimezoneArgs(sender, value);
     if (gui == null) { FireCallbackInSeparateThread(args, OnAccountTimezoneInNewThread); return; } // No gui firing in separate thread
     gui.BeginInvoke(OnAccountTimezone, new object[] { sender, args }); // Syncing to GUI thread
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:7,代码来源:skt_skypekit_2010.cs

示例6: FireOnAccountServiceProviderInfo

 internal void FireOnAccountServiceProviderInfo(SktAccount sender, String value)
 {
     if (OnAccountServiceProviderInfo == null) return; // Event not assigned
     OnAccountServiceProviderInfoArgs args = new OnAccountServiceProviderInfoArgs(sender, value);
     if (gui == null) { FireCallbackInSeparateThread(args, OnAccountServiceProviderInfoInNewThread); return; } // No gui firing in separate thread
     gui.BeginInvoke(OnAccountServiceProviderInfo, new object[] { sender, args }); // Syncing to GUI thread
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:7,代码来源:skt_skypekit_2010.cs

示例7: FireOnAccountPwdchangestatus

 internal void FireOnAccountPwdchangestatus(SktAccount sender, SktAccount.PWDCHANGESTATUS value)
 {
     if (OnAccountPwdchangestatus == null) return; // Event not assigned
     OnAccountPwdchangestatusArgs args = new OnAccountPwdchangestatusArgs(sender, value);
     if (gui == null) { FireCallbackInSeparateThread(args, OnAccountPwdchangestatusInNewThread); return; } // No gui firing in separate thread
     gui.BeginInvoke(OnAccountPwdchangestatus, new object[] { sender, args }); // Syncing to GUI thread
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:7,代码来源:skt_skypekit_2010.cs

示例8: FireOnAccountAvailability

 internal void FireOnAccountAvailability(SktAccount sender, SktContact.AVAILABILITY value)
 {
     if (OnAccountAvailability == null) return; // Event not assigned
     OnAccountAvailabilityArgs args = new OnAccountAvailabilityArgs(sender, value);
     if (gui == null) { FireCallbackInSeparateThread(args, OnAccountAvailabilityInNewThread); return; } // No gui firing in separate thread
     gui.BeginInvoke(OnAccountAvailability, new object[] { sender, args }); // Syncing to GUI thread
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:7,代码来源:skt_skypekit_2010.cs

示例9: OnAccountWebpresencePolicyArgs

 public OnAccountWebpresencePolicyArgs(SktAccount sender, SktAccount.WEBPRESENCEPOLICY newValue)
 {
     this.sender = sender;  value = newValue;
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:4,代码来源:skt_skypekit_2010.cs

示例10: OnAccountSkypeCallPolicyArgs

 public OnAccountSkypeCallPolicyArgs(SktAccount sender, SktAccount.SKYPECALLPOLICY newValue)
 {
     this.sender = sender;  value = newValue;
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:4,代码来源:skt_skypekit_2010.cs

示例11: OnAccountServiceProviderInfoArgs

 public OnAccountServiceProviderInfoArgs(SktAccount sender, String newValue)
 {
     this.sender = sender;  value = newValue;
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:4,代码来源:skt_skypekit_2010.cs

示例12: OnAccountRichMoodTextArgs

 public OnAccountRichMoodTextArgs(SktAccount sender, String newValue)
 {
     this.sender = sender;  value = newValue;
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:4,代码来源:skt_skypekit_2010.cs

示例13: OnAccountRegistrationTimestampArgs

 public OnAccountRegistrationTimestampArgs(SktAccount sender, DateTime newValue)
 {
     this.sender = sender;  value = newValue;
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:4,代码来源:skt_skypekit_2010.cs

示例14: OnAccountPwdchangestatusArgs

 public OnAccountPwdchangestatusArgs(SktAccount sender, SktAccount.PWDCHANGESTATUS newValue)
 {
     this.sender = sender;  value = newValue;
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:4,代码来源:skt_skypekit_2010.cs

示例15: OnAccountPstnCallPolicyArgs

 public OnAccountPstnCallPolicyArgs(SktAccount sender, SktAccount.PSTNCALLPOLICY newValue)
 {
     this.sender = sender;  value = newValue;
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:4,代码来源:skt_skypekit_2010.cs


注:本文中的SkypeKit.SktAccount类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。