linerb 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linerb/api/pollApi.rb +1 -1
- data/lib/linerb/auth.rb +1 -1
- data/lib/linerb/gen-rb/account_auth_factor_eap_connect_service.rb +1 -1
- data/lib/linerb/gen-rb/auth_service.rb +1 -1
- data/lib/linerb/gen-rb/call_service.rb +1 -1
- data/lib/linerb/gen-rb/channel_service.rb +1 -1
- data/lib/linerb/gen-rb/primary_account_init_service.rb +1 -1
- data/lib/linerb/gen-rb/secondary_qr_code_login_permit.rb +1 -1
- data/lib/linerb/gen-rb/takagi_chan_constants.rb +1 -1
- data/lib/linerb/gen-rb/talk_service.rb +123 -0
- data/lib/linerb/version.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80eafe2cd10d094a83551d0df0ee4c7f2120cf4843b8cab44ea975a37318f6e8
|
4
|
+
data.tar.gz: cabe3e10939fc9200273814aa63be48fb89f36f23fcfe3ce872e83a6cb5a5a73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3419189526be2a3dcd1983cff676a344dfb5506ab00b19469fea0fbe56493c1199f5980b4f9d23fe3dafef4399beba181976a469e74d01ba48c2423227eb0321
|
7
|
+
data.tar.gz: 13c5b9b6bf5cb066156fef0dad752d2612b1baac312dfecbe15639c58d75e648df8d3932b2e69c751890687de92214712aa31069f61b80b93911e31ec4adb752
|
data/lib/linerb/api/pollApi.rb
CHANGED
data/lib/linerb/auth.rb
CHANGED
@@ -48,7 +48,7 @@ begin
|
|
48
48
|
e2ee = "?secret=#{secret}" + "&e2eeVersion=#{version}"
|
49
49
|
puts "LINE-RB: [LOGIN] => #{qr_url}#{e2ee}"
|
50
50
|
|
51
|
-
Config::HEADERS
|
51
|
+
Config::HEADERS.store(:"X-Line-Access", session_id)
|
52
52
|
|
53
53
|
protocol = client_proto(Config::PERMIT_NOTICE_URL, Config::HEADERS)
|
54
54
|
cert_client = SecondaryQrCodeLoginPermitNoticeService::Client.new(protocol)
|
@@ -89,6 +89,38 @@ module TalkService
|
|
89
89
|
return
|
90
90
|
end
|
91
91
|
|
92
|
+
def getLastOpRevision()
|
93
|
+
send_getLastOpRevision()
|
94
|
+
return recv_getLastOpRevision()
|
95
|
+
end
|
96
|
+
|
97
|
+
def send_getLastOpRevision()
|
98
|
+
send_message('getLastOpRevision', GetLastOpRevision_args)
|
99
|
+
end
|
100
|
+
|
101
|
+
def recv_getLastOpRevision()
|
102
|
+
result = receive_message(GetLastOpRevision_result)
|
103
|
+
return result.success unless result.success.nil?
|
104
|
+
raise result.e unless result.e.nil?
|
105
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getLastOpRevision failed: unknown result')
|
106
|
+
end
|
107
|
+
|
108
|
+
def fetchOperations(localRev, count)
|
109
|
+
send_fetchOperations(localRev, count)
|
110
|
+
return recv_fetchOperations()
|
111
|
+
end
|
112
|
+
|
113
|
+
def send_fetchOperations(localRev, count)
|
114
|
+
send_message('fetchOperations', FetchOperations_args, :localRev => localRev, :count => count)
|
115
|
+
end
|
116
|
+
|
117
|
+
def recv_fetchOperations()
|
118
|
+
result = receive_message(FetchOperations_result)
|
119
|
+
return result.success unless result.success.nil?
|
120
|
+
raise result.e unless result.e.nil?
|
121
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'fetchOperations failed: unknown result')
|
122
|
+
end
|
123
|
+
|
92
124
|
def reportDeviceState(booleanState, stringState)
|
93
125
|
send_reportDeviceState(booleanState, stringState)
|
94
126
|
recv_reportDeviceState()
|
@@ -1522,6 +1554,28 @@ module TalkService
|
|
1522
1554
|
write_result(result, oprot, 'sendPostback', seqid)
|
1523
1555
|
end
|
1524
1556
|
|
1557
|
+
def process_getLastOpRevision(seqid, iprot, oprot)
|
1558
|
+
args = read_args(iprot, GetLastOpRevision_args)
|
1559
|
+
result = GetLastOpRevision_result.new()
|
1560
|
+
begin
|
1561
|
+
result.success = @handler.getLastOpRevision()
|
1562
|
+
rescue ::TalkException => e
|
1563
|
+
result.e = e
|
1564
|
+
end
|
1565
|
+
write_result(result, oprot, 'getLastOpRevision', seqid)
|
1566
|
+
end
|
1567
|
+
|
1568
|
+
def process_fetchOperations(seqid, iprot, oprot)
|
1569
|
+
args = read_args(iprot, FetchOperations_args)
|
1570
|
+
result = FetchOperations_result.new()
|
1571
|
+
begin
|
1572
|
+
result.success = @handler.fetchOperations(args.localRev, args.count)
|
1573
|
+
rescue ::TalkException => e
|
1574
|
+
result.e = e
|
1575
|
+
end
|
1576
|
+
write_result(result, oprot, 'fetchOperations', seqid)
|
1577
|
+
end
|
1578
|
+
|
1525
1579
|
def process_reportDeviceState(seqid, iprot, oprot)
|
1526
1580
|
args = read_args(iprot, ReportDeviceState_args)
|
1527
1581
|
result = ReportDeviceState_result.new()
|
@@ -2666,6 +2720,75 @@ module TalkService
|
|
2666
2720
|
::Thrift::Struct.generate_accessors self
|
2667
2721
|
end
|
2668
2722
|
|
2723
|
+
class GetLastOpRevision_args
|
2724
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2725
|
+
|
2726
|
+
FIELDS = {
|
2727
|
+
|
2728
|
+
}
|
2729
|
+
|
2730
|
+
def struct_fields; FIELDS; end
|
2731
|
+
|
2732
|
+
def validate
|
2733
|
+
end
|
2734
|
+
|
2735
|
+
::Thrift::Struct.generate_accessors self
|
2736
|
+
end
|
2737
|
+
|
2738
|
+
class GetLastOpRevision_result
|
2739
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2740
|
+
SUCCESS = 0
|
2741
|
+
E = 1
|
2742
|
+
|
2743
|
+
FIELDS = {
|
2744
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
|
2745
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::TalkException}
|
2746
|
+
}
|
2747
|
+
|
2748
|
+
def struct_fields; FIELDS; end
|
2749
|
+
|
2750
|
+
def validate
|
2751
|
+
end
|
2752
|
+
|
2753
|
+
::Thrift::Struct.generate_accessors self
|
2754
|
+
end
|
2755
|
+
|
2756
|
+
class FetchOperations_args
|
2757
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2758
|
+
LOCALREV = 2
|
2759
|
+
COUNT = 3
|
2760
|
+
|
2761
|
+
FIELDS = {
|
2762
|
+
LOCALREV => {:type => ::Thrift::Types::I64, :name => 'localRev'},
|
2763
|
+
COUNT => {:type => ::Thrift::Types::I32, :name => 'count'}
|
2764
|
+
}
|
2765
|
+
|
2766
|
+
def struct_fields; FIELDS; end
|
2767
|
+
|
2768
|
+
def validate
|
2769
|
+
end
|
2770
|
+
|
2771
|
+
::Thrift::Struct.generate_accessors self
|
2772
|
+
end
|
2773
|
+
|
2774
|
+
class FetchOperations_result
|
2775
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2776
|
+
SUCCESS = 0
|
2777
|
+
E = 1
|
2778
|
+
|
2779
|
+
FIELDS = {
|
2780
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Operation}},
|
2781
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::TalkException}
|
2782
|
+
}
|
2783
|
+
|
2784
|
+
def struct_fields; FIELDS; end
|
2785
|
+
|
2786
|
+
def validate
|
2787
|
+
end
|
2788
|
+
|
2789
|
+
::Thrift::Struct.generate_accessors self
|
2790
|
+
end
|
2791
|
+
|
2669
2792
|
class ReportDeviceState_args
|
2670
2793
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2671
2794
|
BOOLEANSTATE = 2
|
data/lib/linerb/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module Linerb
|
2
|
-
VERSION = "0.1.
|
3
|
-
end
|
1
|
+
module Linerb
|
2
|
+
VERSION = "0.1.8"
|
3
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linerb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TakagiChan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thrift
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.13.0
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.13.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: async
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|