• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# SkypeKit.SktAccount类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: OnAccountTimezonePolicyArgs

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


示例17: OnAccountVoicemailPolicyArgs

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


示例18: OnAccountSkypeinNumbersArgs

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


示例19: Add

 public void Add(SktAccount item)
 {
     base.Add((SktAccount)item);
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:4,代码来源:skt_skypekit_2010.cs


示例20: OnAccountSkypeoutBalanceArgs

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# SkypeKit.SktContact类代码示例发布时间:2022-05-26
下一篇:
C# Graph.GraphPane类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap