profile_thrift_client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/profile_thrift_client.rb +282 -0
- data/lib/remote_profile_constants.rb +13 -0
- data/lib/remote_profile_types.rb +370 -0
- data/lib/remote_user_profile_service.rb +1072 -0
- data/lib/remote_user_vip_service.rb +84 -0
- metadata +47 -0
@@ -0,0 +1,84 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.1)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'remote_profile_types'
|
9
|
+
|
10
|
+
module Profile
|
11
|
+
module Thrift
|
12
|
+
module RemoteUserVipService
|
13
|
+
class Client
|
14
|
+
include ::Thrift::Client
|
15
|
+
|
16
|
+
def setVipEndAt(uid, endAtMills)
|
17
|
+
send_setVipEndAt(uid, endAtMills)
|
18
|
+
return recv_setVipEndAt()
|
19
|
+
end
|
20
|
+
|
21
|
+
def send_setVipEndAt(uid, endAtMills)
|
22
|
+
send_message('setVipEndAt', SetVipEndAt_args, :uid => uid, :endAtMills => endAtMills)
|
23
|
+
end
|
24
|
+
|
25
|
+
def recv_setVipEndAt()
|
26
|
+
result = receive_message(SetVipEndAt_result)
|
27
|
+
return result.success unless result.success.nil?
|
28
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'setVipEndAt failed: unknown result')
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
class Processor
|
34
|
+
include ::Thrift::Processor
|
35
|
+
|
36
|
+
def process_setVipEndAt(seqid, iprot, oprot)
|
37
|
+
args = read_args(iprot, SetVipEndAt_args)
|
38
|
+
result = SetVipEndAt_result.new()
|
39
|
+
result.success = @handler.setVipEndAt(args.uid, args.endAtMills)
|
40
|
+
write_result(result, oprot, 'setVipEndAt', seqid)
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
46
|
+
|
47
|
+
class SetVipEndAt_args
|
48
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
49
|
+
UID = 1
|
50
|
+
ENDATMILLS = 2
|
51
|
+
|
52
|
+
FIELDS = {
|
53
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
54
|
+
ENDATMILLS => {:type => ::Thrift::Types::I64, :name => 'endAtMills'}
|
55
|
+
}
|
56
|
+
|
57
|
+
def struct_fields; FIELDS; end
|
58
|
+
|
59
|
+
def validate
|
60
|
+
end
|
61
|
+
|
62
|
+
::Thrift::Struct.generate_accessors self
|
63
|
+
end
|
64
|
+
|
65
|
+
class SetVipEndAt_result
|
66
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
67
|
+
SUCCESS = 0
|
68
|
+
|
69
|
+
FIELDS = {
|
70
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
71
|
+
}
|
72
|
+
|
73
|
+
def struct_fields; FIELDS; end
|
74
|
+
|
75
|
+
def validate
|
76
|
+
end
|
77
|
+
|
78
|
+
::Thrift::Struct.generate_accessors self
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
84
|
+
end
|
metadata
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: profile_thrift_client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- rick
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-05-26 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email:
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/remote_profile_constants.rb
|
20
|
+
- lib/remote_profile_types.rb
|
21
|
+
- lib/remote_user_profile_service.rb
|
22
|
+
- lib/remote_user_vip_service.rb
|
23
|
+
- lib/profile_thrift_client.rb
|
24
|
+
homepage:
|
25
|
+
licenses: []
|
26
|
+
metadata: {}
|
27
|
+
post_install_message:
|
28
|
+
rdoc_options: []
|
29
|
+
require_paths:
|
30
|
+
- lib
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - '>='
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
requirements: []
|
42
|
+
rubyforge_project:
|
43
|
+
rubygems_version: 2.0.3
|
44
|
+
signing_key:
|
45
|
+
specification_version: 4
|
46
|
+
summary: profile_thrift_client is a thrift client of passport
|
47
|
+
test_files: []
|