Flying the. NET interface

Source: Internet
Author: User

Fly Letter Send Interface Call description

1 This letter interface core documents only FetionObj.dll and FetionSer.dll, other documents are flying letter client files, only your application and the above two files to the same directory with the letter letter client can be, debugging, You're going to copy that file into your running directory, including the theme directory.

2 when developing and using an interface, you simply add FetionObj.dll files to the reference, and in the source code reference Riga "using Fetion;" Statement, this reference two objects: Fetionuser structure is the friend information structure, Fetionobj class is the Flying letter operation Interface class.

3) Fetionuser structure description as follows:
public struct Fetionuser
{
public string Fetionno; Fly Letter Account
public string Mobileno; Flying Letter Mobile Phone number
public string UName; User name or nickname
public bool Enableim; Flying Letter Online
public bool enablesms; SMS Online
public bool Enableinvite//Active (Login or exit)
}

4) Fetionobj class description
(call can refer to my "Call test" program source code)

********************************************************
Attribute Description:
<summary>
Determine whether you are logged on, equal to True
</summary>
public bool IsLogin

<summary>
Returns the phone number or flight signal used for login
</summary>
public string Getmyno

<summary>
Return to their own flying signals
</summary>
public string Getmyfetionno

<summary>
Go back to your phone number
</summary>
public string Getmymobileno

<summary>
Return to your nickname
</summary>
public string Getmyname

*****************************************************
Function Description:
<summary>
Construction function of flying letter class
</summary>
Public Fetionobj ()

<summary>
Login Letter
</summary>
<param name= "Mymno" >string, cell phone number or flight signal </param>
<param name= "Mympass" >string Flying letter password </param>
<returns>true Operation SUCCEEDED (note: The login was not known until the Onlogin event occurred), false operation failed </returns>
public bool Loginfetion (string Mymno, String mympass)

<summary>
Letter Cancellation
</summary>
public void Logoutfetion ()

<summary>
Send SMS (note: You can invoke multiple times, return successful results in Sendok event)
</summary>
<param name= "Tomnoarr" > Send target Cell phone number or flight signal array </param>
<param name= "smsmsg" > Message content </param>
<param name= "issms" >true all send mobile text messages, false according to user online situation automatically processing </param>
public bool Sendsms (string[] Tomnoarr, string smsmsg)

<summary>
Send a timed message
</summary>
<param name= "Tomnoarr" > Send target Cell phone number or flight signal array </param>
<param name= "smsmsg" > Message content </param>
<param name= "ToTime" > Time to send, note: More than 10 minutes after the time </param>
public bool Sendtimesms (string[] Tomnoarr, String smsmsg, DateTime totime)

<summary>
Add Friends
</summary>
<param name= "Addmno" > Target cell phone number or flight signal to be added </param>
<param name= "MSG" > give each other information, limited to no more than 10 characters (i.e. 5 characters) </param>
<param name= "Friendname" > Custom buddy name </param>
public bool Addfriend (string Addmno, String Msg, String friendname)

<summary>
Delete Friends
</summary>
<param name= "Addmno" > Target cell phone number or flight signal to be deleted </param>
public bool Delfriend (string Delmno)

<summary>
Get a buddy list directly
</summary>
Public fetionuser[] Getmlist ()

<summary>
Make sure your buddy list is ready
</summary>
public bool Ismlistok ()

**************************************************************************
Event Description:

<summary>
Trigger Event Agent When new text message is available
</summary>
<param name= "Fobj" > the application of the letter of the letter of the class object </param>
<param name= "Reu" > Sender user Information </param>
<param name= "MSG" > Information received </param>
public delegate void Refindmsg (Fetionobj fobj, Fetionuser Reu, string Msg);

<summary>
Trigger event when new text message is available
</summary>
public event refindmsg Onrefindmsg; Received a message

<summary>
Trigger event Agent when receiving SMS error
</summary>
<param name= "Fobj" > the application of the letter of the letter of the class object </param>
<param name= "Errtxt" > Error message </param>
public delegate void Reerr (Fetionobj fobj, string errtxt);

<summary>
Trigger event when receiving SMS error
</summary>
public event Reerr Onreerr;

<summary>
Trigger event agent when added as Buddy
</summary>
<param name= "Fobj" > the application of the letter of the letter of the class object </param>
<param name= "Reu" > Other user Information </param>
<returns>true agree, and add him as a friend, false disagree </returns>
Public delegate bool Readd (fetionobj fobj, Fetionuser Reu);

<summary>
Trigger event when added as Buddy
</summary>
public event Readd Onreadd;

<summary>
Trigger Event agent when buddy status changes
</summary>
<param name= "Fobj" > the application of the letter of the letter of the class object </param>
<param name= "Reu" > Friends information </param>
Public delegate bool Pchanged (fetionobj fobj, Fetionuser Reu);

<summary>
Trigger event when Buddy status changes
</summary>
public event pchanged Onpchanged;

<summary>
Triggers an event agent every time a message is sent successfully
</summary>
<param name= "Fobj" > the application of the letter of the letter of the class object </param>
<param name= "TOFNO" > Target flight Signal </param>
<param name= "MSG" > Message content </param>
public delegate void Sendok (Fetionobj fobj, String tofno, string Msg);

<summary>
Triggers event every time a message is sent
</summary>
public event Sendok Onsendok;

<summary>
Trigger Event Agent when all send complete
</summary>
<param name= "Fobj" > the application of the letter of the letter of the class object </param>
public delegate void Sendallok (Fetionobj fobj);

<summary>
Trigger event after all send complete
</summary>
public event Sendallok Onsendallok; When all is done

<summary>
Triggers an event agent every time an error is sent
</summary>
<param name= "Fobj" > the application of the letter of the letter of the class object </param>
<param name= "TOFNO" > Target flight Signal </param>
<param name= "MSG" > Message content </param>
<param name= "Errtxt" > Error message </param>
public delegate void Senderr (Fetionobj fobj, String tofno, String Msg, string errtxt);

<summary>
Triggers an event every time an error is sent
</summary>
public event Senderr Onsenderr; Send Error

<summary>
Flying letter after login to trigger event agent
</summary>
<param name= "Fobj" > the application of the letter of the letter of the class object </param>
<param name= "Oklogin" > Login succeeded, true to success </param>
public delegate void Login (Fetionobj fobj, bool oklogin);

<summary>
Flying letter after login to trigger events
</summary>
public event Login Onlogin;

<summary>
Trigger event agent when Buddy List completes
</summary>
<param name= "Fobj" > Events of the Flying class object </param>
<param name= "ulist" > Buddy list </param>
public delegate void Mlist (Fetionobj fobj, fetionuser[] ulist);

<summary>
Trigger event when Buddy list completes
</summary>
public event Mlist Onmlist;

<summary>
Trigger Event Agent When letter is logged off
</summary>
<param name= "Fobj" > Events of the Flying class object </param>
public delegate void Logout (Fetionobj fobj);

<summary>
Trigger event when letter is cancelled
</summary>
public event Logout Onlogout;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.