-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsyncresult.go
More file actions
80 lines (74 loc) · 1.61 KB
/
syncresult.go
File metadata and controls
80 lines (74 loc) · 1.61 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package content
import (
"github.com/AndroidGoLab/binder/parcel"
)
// Code generated by aidlgen. DO NOT EDIT.
type SyncResult struct {
SyncAlreadyInProgress bool
TooManyDeletions bool
TooManyRetries bool
DatabaseError bool
FullSyncRequested bool
PartialSyncUnavailable bool
MoreRecordsToGet bool
DelayUntil int64
Stats SyncStats
}
var _ parcel.Parcelable = (*SyncResult)(nil)
func (s *SyncResult) MarshalParcel(
p *parcel.Parcel,
) error {
p.WriteBool(s.SyncAlreadyInProgress)
p.WriteBool(s.TooManyDeletions)
p.WriteBool(s.TooManyRetries)
p.WriteBool(s.DatabaseError)
p.WriteBool(s.FullSyncRequested)
p.WriteBool(s.PartialSyncUnavailable)
p.WriteBool(s.MoreRecordsToGet)
p.WriteInt64(s.DelayUntil)
if _err := s.Stats.MarshalParcel(p); _err != nil {
return _err
}
return nil
}
func (s *SyncResult) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
s.SyncAlreadyInProgress, _err = p.ReadBool()
if _err != nil {
return _err
}
s.TooManyDeletions, _err = p.ReadBool()
if _err != nil {
return _err
}
s.TooManyRetries, _err = p.ReadBool()
if _err != nil {
return _err
}
s.DatabaseError, _err = p.ReadBool()
if _err != nil {
return _err
}
s.FullSyncRequested, _err = p.ReadBool()
if _err != nil {
return _err
}
s.PartialSyncUnavailable, _err = p.ReadBool()
if _err != nil {
return _err
}
s.MoreRecordsToGet, _err = p.ReadBool()
if _err != nil {
return _err
}
s.DelayUntil, _err = p.ReadInt64()
if _err != nil {
return _err
}
if _err := s.Stats.UnmarshalParcel(p); _err != nil {
return _err
}
return nil
}