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

C# SkypeKit.SktContact类代码示例

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

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



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

示例1: OnContactHomepageArgs

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


示例2: FireOnContactProfileTimestamp

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


示例3: FireOnContactType

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


示例4: contacts

 /**  Takes a list of Contacts as an argument and posts the list into the Conversation. The purpose of this
   feature is to enable sharing contacts between users, without resorting to contact search. Instead, if
   user A has contacts B and C, he can post contact C into chat with contact B. At this point, Contact B
   can add contact C to his contact list. From remote side, the posted contacts will appear as messages
   with type SktMessage.POSTED_CONTACTS appearing in the conversation. The UI should allow adding these
   contacts from messages with this type into the contact list. The list of posted contacts can be retrieved
   with the SktMessage.GetContacts method. Additionally, the UI then can parse the posted Contact data out
   of the SktMessage.P_BODY_XML property. The list of contacts is wrapped between <contacts ..> </contacts> tags. Each contact item in the xml
   has following format: @li t - contact type. "s" - skype contact; "p" - phone number; @li s - skypename,
   present only in skypename contacts (t="s") @li p - phone number, present only in phone number contacts
   (t="p") @li f - contact's full name, if available @li d - contact's display name, if available Note that
   only the type (t) field is mandatory. Depending on type, either skypename (s) or phone number (p) fields are always present. Full name and display name fields are optional. Example BODY_XML with
   skypname contact: @code <contacts alt="alt text"><c t="s" s="skypename" f="full name"/></contacts> @endcode
   Example BODY_XML with PSTN contact: @code <contacts alt="alt text"><c t="p" p="+37212345678" d="Some
   PSTN number"/></contacts> @endcode Example BODY_XML with multiple contacts: @code <contacts alt="alt
   text"><c t="p" p="+37212345678" d="Some PSTN number"/><c t="s" s="someskypename"/></contacts> @endcode
 @param [in] contacts - List of Contact objects, to be posted in the conversation.
  */
 public void PostContacts(SktContact.List contacts)
 {
     if (skypeRef.logging) skypeRef.Log("Executing Conversation.PostContacts");
     uint RequestId = skypeRef.encoder.AddMethodHeader(ClassId, 20, OID);
     skypeRef.encoder.AddObjectListParam(1, contacts);
     skypeRef.transport.SubmitMethodRequest (RequestId);
     skypeRef.decoder.DecodeMethodResponseWithNoArguments("SktConversation.PostContacts");
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:26,代码来源:skt_skypekit_2010.cs


示例5: FireOnContactGivenAuthlevel

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


示例6: HasCapability

 /**  Retrieves a SktContact.Capability value. Sets P_REFRESHING to true while querying from server. This method
   is functionally the same as SktContact.GetCapabilityStatus except that it returns a bool value rather
   than SktContact.CAPABILITYSTATUS
 @returns result @li true: the Contact has the target capability through at least one of the Skype clients they have logged into. Corresponds to CAPABILITY_MIXED and CAPABILITY_EXISTS @li false: the Contact does not have the target capability. Corresponds to NO_CAPABILITY
 @param [in] capability - The target capability
 @param [in] queryServer - @li true: obtains the data from the p2p network/server, and sets P_REFRESHING to true for the duration
   @li false: obtains the data from the local client Default value is false
  */
 public Boolean HasCapability(SktContact.CAPABILITY capability, Boolean queryServer=false)
 {
     if (skypeRef.logging) skypeRef.Log("Executing Contact.HasCapability");
     uint RequestId = skypeRef.encoder.AddMethodHeader(ClassId, 18, OID);
     skypeRef.encoder.AddEnumParam(1, (uint)capability);
     skypeRef.encoder.AddBoolParam(2, queryServer);
     skypeRef.transport.SubmitMethodRequest (RequestId);
     Dictionary<uint, uint> tagMap = new Dictionary<uint, uint> { {1, 1} };
     object[] args = new object[1];
     args[0] = false;
     skypeRef.decoder.DecodeMethodResponseArguments(1, ref args, new uint[1]{0}, ref tagMap, "SktContact.HasCapability");
     return (Boolean)args[0];
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:21,代码来源:skt_skypekit_2010.cs


示例7: AddContact

 /**  Checks if the current user can add given contact to the ContactGroup.
 @returns result returns true if AddContact(contact) works on this group.
 @param [in] contact - Contact to be checked. Default value is null
  */
 public Boolean CanAddContact(SktContact contact=null)
 {
     if (skypeRef.logging) skypeRef.Log("Executing ContactGroup.CanAddContact");
     uint RequestId = skypeRef.encoder.AddMethodHeader(ClassId, 9, OID);
     skypeRef.encoder.AddObjectParam(1, contact);
     skypeRef.transport.SubmitMethodRequest (RequestId);
     Dictionary<uint, uint> tagMap = new Dictionary<uint, uint> { {1, 1} };
     object[] args = new object[1];
     args[0] = false;
     skypeRef.decoder.DecodeMethodResponseArguments(1, ref args, new uint[1]{0}, ref tagMap, "SktContactGroup.CanAddContact");
     return (Boolean)args[0];
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:16,代码来源:skt_skypekit_2010.cs


示例8: OnContactPopularityOrdArgs

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


示例9: OnContactProfileTimestampArgs

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


示例10: OnContactNrofAuthedBuddiesArgs

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


示例11: OnContactPhoneOfficeArgs

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


示例12: OnContactLastonlineTimestampArgs

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


示例13: OnContactLanguagesArgs

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


示例14: OnContactIpcountryArgs

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


示例15: OnContactTypeArgs

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


示例16: OnContactProvinceArgs

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


示例17: FindContactByPstnNumber

 /**
 @param [out] found
 @param [out] contact
 @param [out] foundInKey type is actually PROPKEY
 @param [in] number
  */
 public void FindContactByPstnNumber(
 out Boolean found,
 out SktContact contact,
 out uint    foundInKey,
 String      number)
 {
     if (skypeRef.logging) skypeRef.Log("Executing Skype.FindContactByPstnNumber");
     uint RequestId = skypeRef.encoder.AddMethodHeader(ClassId, 8, OID);
     skypeRef.encoder.AddStringParam(1, number);
     skypeRef.transport.SubmitMethodRequest (RequestId);
     Dictionary<uint, uint> tagMap = new Dictionary<uint, uint> { {1, 1}, {2, 2}, {3, 3} };
     object[] args = new object[3];
     args[0] = false;
     args[1] = null;
     args[2] = 0;
     skypeRef.decoder.DecodeMethodResponseArguments(3, ref args, new uint[3]{0,2,0}, ref tagMap, "SktSkype.FindContactByPstnNumber");
     found = (Boolean)args[0];
     contact = (SktContact)args[1];
     foundInKey = (uint)args[2];
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:26,代码来源:skt_skypekit_2010.cs


示例18: OnContactPstnnumberArgs

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


示例19: Add

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


示例20: OnContactReceivedAuthrequestArgs

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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# SkypeKit.SktConversation类代码示例发布时间:2022-05-26
下一篇:
C# SkypeKit.SktAccount类代码示例发布时间: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