Пример #1
0
 public OnContactHomepageArgs(SktContact sender, String newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #2
0
 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
 }
Пример #3
0
 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
 }
Пример #4
0
 /**  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");
 }
Пример #5
0
 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
 }
Пример #6
0
 /**  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];
 }
Пример #7
0
 /**  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];
 }
Пример #8
0
 public OnContactPopularityOrdArgs(SktContact sender, uint newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #9
0
 public OnContactProfileTimestampArgs(SktContact sender, DateTime newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #10
0
 public OnContactNrofAuthedBuddiesArgs(SktContact sender, uint newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #11
0
 public OnContactPhoneOfficeArgs(SktContact sender, String newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #12
0
 public OnContactLastonlineTimestampArgs(SktContact sender, DateTime newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #13
0
 public OnContactLanguagesArgs(SktContact sender, String newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #14
0
 public OnContactIpcountryArgs(SktContact sender, String newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #15
0
 public OnContactTypeArgs(SktContact sender, SktContact.TYPE newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #16
0
 public OnContactProvinceArgs(SktContact sender, String newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #17
0
 /**
 @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];
 }
Пример #18
0
 public OnContactPstnnumberArgs(SktContact sender, String newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #19
0
 public void Add(SktContact item)
 {
     base.Add((SktContact)item);
 }
Пример #20
0
 public OnContactReceivedAuthrequestArgs(SktContact sender, String newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #21
0
 /**  Removes contact from the ContactGroup.
 @param [in] contact
  */
 public void RemoveContact(SktContact contact)
 {
     if (skypeRef.logging) skypeRef.Log("Executing ContactGroup.RemoveContact");
     uint RequestId = skypeRef.encoder.AddMethodHeader(ClassId, 12, OID);
     skypeRef.encoder.AddObjectParam(1, contact);
     skypeRef.transport.SubmitMethodRequest (RequestId);
     skypeRef.decoder.DecodeMethodResponseWithNoArguments("SktContactGroup.RemoveContact");
 }
Пример #22
0
 public OnContactRefreshingArgs(SktContact sender, Boolean newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #23
0
 internal void FireOnContactAvailability(SktContact sender, SktContact.AVAILABILITY value)
 {
     if (OnContactAvailability == null) return; // Event not assigned
     OnContactAvailabilityArgs args = new OnContactAvailabilityArgs(sender, value);
     if (gui == null) { FireCallbackInSeparateThread(args, OnContactAvailabilityInNewThread); return; } // No gui firing in separate thread
     gui.BeginInvoke(OnContactAvailability, new object[] { sender, args }); // Syncing to GUI thread
 }
Пример #24
0
 public OnContactRichMoodTextArgs(SktContact sender, String newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #25
0
 internal void FireOnContactNrofAuthedBuddies(SktContact sender, uint value)
 {
     if (OnContactNrofAuthedBuddies == null) return; // Event not assigned
     OnContactNrofAuthedBuddiesArgs args = new OnContactNrofAuthedBuddiesArgs(sender, value);
     if (gui == null) { FireCallbackInSeparateThread(args, OnContactNrofAuthedBuddiesInNewThread); return; } // No gui firing in separate thread
     gui.BeginInvoke(OnContactNrofAuthedBuddies, new object[] { sender, args }); // Syncing to GUI thread
 }
Пример #26
0
 public OnContactSkypenameArgs(SktContact sender, String newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #27
0
 internal void FireOnContactReceivedAuthrequest(SktContact sender, String value)
 {
     if (OnContactReceivedAuthrequest == null) return; // Event not assigned
     OnContactReceivedAuthrequestArgs args = new OnContactReceivedAuthrequestArgs(sender, value);
     if (gui == null) { FireCallbackInSeparateThread(args, OnContactReceivedAuthrequestInNewThread); return; } // No gui firing in separate thread
     gui.BeginInvoke(OnContactReceivedAuthrequest, new object[] { sender, args }); // Syncing to GUI thread
 }
Пример #28
0
 public OnContactTimezoneArgs(SktContact sender, uint newValue)
 {
     this.sender = sender;  value = newValue;
 }
Пример #29
0
 /**  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];
 }
Пример #30
0
 public OnContactGivenDisplaynameArgs(SktContact sender, String newValue)
 {
     this.sender = sender;  value = newValue;
 }