當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。