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


C# SkypeKit.SktContact类代码示例

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


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


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