My favorites
|
Sign in
nateon-lib
Java implementation for nateon messenger
Project Home
Downloads
Wiki
Issues
Source
Checkout
|
Browse
|
Changes
|
r3
Source path:
svn
/
trunk
/
Test.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import java.io.*;
import rath.nateon.*;
import rath.nateon.event.*;
public class Test
{
public static void main( String[] args ) throws Exception
{
Debug.printInput = true;
Debug.printOutput = true;
final NateOnMessenger nateon = new NateOnMessenger(args[0], args[1]);
nateon.setAutoAccept(true);
nateon.addNateOnListener( new NateOnAdapter() {
public void loginComplete( NateUser me )
{
System.out.println( "* Login complete: " + me );
}
public void smsReceived( String from, String to, String msg )
throws IOException
{
System.out.println( "* SMS From: " + from );
System.out.println( msg );
}
public void channelMessage( ChatChannel channel, String from, String font, String msg )
{
System.out.println( from + " says: " + msg );
try
{
channel.sendMessage( "t-_-t" );
}
catch( IOException e )
{
e.printStackTrace();
}
}
});
nateon.login();
/*
Thread.sleep( 5000L );
System.out.println( "Send SMS..." );
nateon.sendSMS( "01000000000", "dsalkdjsalkdjs" );
*/
}
}
Show details
Hide details
Change log
r2
by xrathx on Nov 17, 2008
Diff
initial import
Go to:
/trunk/Test.java
/trunk/build.xml
/trunk/docs
/trunk/docs/allclasses-frame.html
/trunk/docs/allclasses-noframe.html
/trunk/docs/constant-values.html
/trunk/docs/deprecated-list.html
/trunk/docs/help-doc.html
/trunk/docs/index-files
...nk/docs/index-files/index-1.html
...k/docs/index-files/index-10.html
...k/docs/index-files/index-11.html
...k/docs/index-files/index-12.html
...k/docs/index-files/index-13.html
...k/docs/index-files/index-14.html
...k/docs/index-files/index-15.html
...k/docs/index-files/index-16.html
...nk/docs/index-files/index-2.html
...nk/docs/index-files/index-3.html
...nk/docs/index-files/index-4.html
...nk/docs/index-files/index-5.html
...nk/docs/index-files/index-6.html
...nk/docs/index-files/index-7.html
...nk/docs/index-files/index-8.html
...nk/docs/index-files/index-9.html
/trunk/docs/index.html
/trunk/docs/overview-frame.html
/trunk/docs/overview-summary.html
/trunk/docs/overview-tree.html
/trunk/docs/package-list
/trunk/docs/rath
/trunk/docs/rath/nateon
...ocs/rath/nateon/ChatChannel.html
/trunk/docs/rath/nateon/Debug.html
...rath/nateon/DispatchChannel.html
...docs/rath/nateon/NateEncode.html
...s/rath/nateon/NateOnChannel.html
...s/rath/nateon/NateOnMessage.html
...rath/nateon/NateOnMessenger.html
...k/docs/rath/nateon/NateUser.html
.../nateon/NotificationChannel.html
/trunk/docs/rath/nateon/event
.../nateon/event/NateOnAdapter.html
...nateon/event/NateOnListener.html
.../nateon/event/package-frame.html
...ateon/event/package-summary.html
...h/nateon/event/package-tree.html
...s/rath/nateon/package-frame.html
...rath/nateon/package-summary.html
...cs/rath/nateon/package-tree.html
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1073 bytes, 48 lines
View raw file
Hosted by