Skip to content

Commit

Permalink
fix gradle wrapper list address
Browse files Browse the repository at this point in the history
android.oa.com is tencent service
  • Loading branch information
shockcao committed Dec 28, 2016
1 parent bd61536 commit 71ec68b
Show file tree
Hide file tree
Showing 8 changed files with 450 additions and 6 deletions.
2 changes: 1 addition & 1 deletion samples/Mac/CoreUI/MessagesController.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ - (id)initWithCoder:(NSCoder *)coder {
[self setDoubleAction:NSSelectorFromString(@"doubleClick:")];
}

CGITask *convlstCGI = [[CGITask alloc] initAll:ChannelType_ShortConn AndCmdId:kConvLst AndCGIUri:@"/mars/getconvlist" AndHost:@"localhost"];
CGITask *convlstCGI = [[CGITask alloc] initAll:ChannelType_ShortConn AndCmdId:kConvLst AndCGIUri:@"/mars/getconvlist" AndHost:@"www.marsopen.cn"];
[[NetworkService sharedInstance] startTask:convlstCGI ForUI:self];

return self;
Expand Down
4 changes: 2 additions & 2 deletions samples/Mac/CoreUI/PingServerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ - (void)viewDidLoad {
}

- (IBAction)onButtonClick:(id)sender {
CGITask *helloCGI = [[CGITask alloc] initAll:ChannelType_All AndCmdId:kSayHello AndCGIUri:@"/mars/hello" AndHost:@"localhost"];
CGITask *helloCGI = [[CGITask alloc] initAll:ChannelType_All AndCmdId:kSayHello AndCGIUri:@"/mars/hello" AndHost:@"www.marsopen.cn"];
[[NetworkService sharedInstance] startTask:helloCGI ForUI:self];
}

- (NSData*)requestSendData {
HelloRequest* helloRequest = [[[[HelloRequest builder] setUser:@"caoshaokun"] setText:@"Hello world!"] build];
HelloRequest* helloRequest = [[[[HelloRequest builder] setUser:@"anonymous"] setText:@"Hello world!"] build];
NSData* data = [helloRequest data];
return data;
}
Expand Down
4 changes: 2 additions & 2 deletions samples/Mac/CoreUI/TopicViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ - (void)viewDidLoad {
}

-(NSData*)requestSendData {
SendMessageRequest* sendMsgRequest = [[[[[[SendMessageRequest builder] setFrom:@"caoshaokun"] setTo:@"all"] setText:self->text] setAccessToken:@"123456"] build];
SendMessageRequest* sendMsgRequest = [[[[[[[SendMessageRequest builder] setFrom:@"anonymous"] setTo:@"all"] setText:self->text] setAccessToken:@"123456"] setTopic:@"0"] build];
NSData* data = [sendMsgRequest data];
return data;
}
Expand All @@ -53,7 +53,7 @@ -(int)notifyUIWithResponse:(NSData*)responseData {
}

- (IBAction)sendMessage:(id)sender {
CGITask *sendMsgCGI = [[CGITask alloc] initAll:ChannelType_ShortConn AndCmdId:kSendMsg AndCGIUri:@"/mars/sendmessage" AndHost:@"localhost"];
CGITask *sendMsgCGI = [[CGITask alloc] initAll:ChannelType_LongConn AndCmdId:kSendMsg AndCGIUri:@"/mars/sendmessage" AndHost:@"www.marsopen.cn"];
[[NetworkService sharedInstance] startTask:sendMsgCGI ForUI:self];

self->text = _textField.stringValue;
Expand Down
10 changes: 10 additions & 0 deletions samples/Mac/MacDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
1F44893E1E0184F100FF3728 /* NetworkEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F4489311E0184F100FF3728 /* NetworkEvent.m */; };
1F44893F1E0184F100FF3728 /* PingServerController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F4489331E0184F100FF3728 /* PingServerController.m */; };
1F4489401E0184F100FF3728 /* TopicViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F4489351E0184F100FF3728 /* TopicViewController.m */; };
1F7626CD1E13974A000A4AE6 /* Messagepush.pb.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F7626CB1E13974A000A4AE6 /* Messagepush.pb.m */; };
1F7626CE1E13974A000A4AE6 /* messagepush.proto in Resources */ = {isa = PBXBuildFile; fileRef = 1F7626CC1E13974A000A4AE6 /* messagepush.proto */; };
1FABA3031DE86CC900C9D1A4 /* CGITask.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1FABA2FE1DE86CC900C9D1A4 /* CGITask.mm */; };
1FABA3041DE86CC900C9D1A4 /* NetworkService.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1FABA3011DE86CC900C9D1A4 /* NetworkService.mm */; };
1FAEF2431DEEB1AB002F3AA6 /* LogHelper.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1FAEF2401DEEB1AB002F3AA6 /* LogHelper.mm */; };
Expand Down Expand Up @@ -83,6 +85,9 @@
1F4489331E0184F100FF3728 /* PingServerController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PingServerController.m; sourceTree = "<group>"; };
1F4489341E0184F100FF3728 /* TopicViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TopicViewController.h; sourceTree = "<group>"; };
1F4489351E0184F100FF3728 /* TopicViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TopicViewController.m; sourceTree = "<group>"; };
1F7626CA1E13974A000A4AE6 /* Messagepush.pb.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Messagepush.pb.h; sourceTree = "<group>"; };
1F7626CB1E13974A000A4AE6 /* Messagepush.pb.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Messagepush.pb.m; sourceTree = "<group>"; };
1F7626CC1E13974A000A4AE6 /* messagepush.proto */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = messagepush.proto; sourceTree = "<group>"; };
1FABA2FD1DE86CC900C9D1A4 /* CGITask.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CGITask.h; sourceTree = "<group>"; };
1FABA2FE1DE86CC900C9D1A4 /* CGITask.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CGITask.mm; sourceTree = "<group>"; };
1FABA2FF1DE86CC900C9D1A4 /* NetworkDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NetworkDelegate.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -281,6 +286,9 @@
4BB7127C1DE81FC100185734 /* Proto */ = {
isa = PBXGroup;
children = (
1F7626CA1E13974A000A4AE6 /* Messagepush.pb.h */,
1F7626CB1E13974A000A4AE6 /* Messagepush.pb.m */,
1F7626CC1E13974A000A4AE6 /* messagepush.proto */,
4BB7127D1DE81FC100185734 /* Chat.pb.h */,
4BB7127E1DE81FC100185734 /* Chat.pb.m */,
4BB7127F1DE81FC100185734 /* chat.proto */,
Expand Down Expand Up @@ -430,6 +438,7 @@
files = (
4BB712B91DE81FC100185734 /* chat.proto in Resources */,
1F4489371E0184F100FF3728 /* Assets.xcassets in Resources */,
1F7626CE1E13974A000A4AE6 /* messagepush.proto in Resources */,
4BB712BB1DE81FC100185734 /* main.proto in Resources */,
1F44893B1E0184F100FF3728 /* Info.plist in Resources */,
1F4489381E0184F100FF3728 /* Main.storyboard in Resources */,
Expand Down Expand Up @@ -464,6 +473,7 @@
1FAEF2441DEEB1AB002F3AA6 /* LogUtil.m in Sources */,
4BB712C31DE81FC100185734 /* ExtendableMessageBuilder.m in Sources */,
1F44893E1E0184F100FF3728 /* NetworkEvent.m in Sources */,
1F7626CD1E13974A000A4AE6 /* Messagepush.pb.m in Sources */,
4BB712D01DE81FC100185734 /* Utilities.m in Sources */,
1F4489401E0184F100FF3728 /* TopicViewController.m in Sources */,
4BB712B81DE81FC100185734 /* Chat.pb.m in Sources */,
Expand Down
89 changes: 89 additions & 0 deletions samples/Mac/Proto/Messagepush.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 71ec68b

Please sign in to comment.