update capture to compile

This commit is contained in:
2022-07-20 17:39:45 -07:00
parent 48fe00b0b8
commit 72edfb6fd3

View File

@@ -34,9 +34,10 @@ func (s SequenceSleep) StartTime() time.Time{
return time.Time{} return time.Time{}
} }
func (s SequenceSwipe) StartTime() time.Time{ func (s SequenceSleep) EndTime() time.Time {
return s.Start return time.Time{}
} }
type SequenceTap struct { type SequenceTap struct {
X int X int
Y int Y int
@@ -52,9 +53,14 @@ func (s SequenceTap) Length() time.Duration {
return 0 return 0
} }
func (s SequenceSwipe) StartTime() time.Time{ func (s SequenceTap) StartTime() time.Time {
return s.Start return s.Start
} }
func (s SequenceTap) EndTime() time.Time {
return s.End
}
type SequenceSwipe struct { type SequenceSwipe struct {
X1 int X1 int
Y1 int Y1 int
@@ -73,6 +79,10 @@ func (s SequenceSwipe) StartTime() time.Time{
return s.Start return s.Start
} }
func (s SequenceSwipe) EndTime() time.Time {
return s.End
}
func (s SequenceSwipe) Length() time.Duration { func (s SequenceSwipe) Length() time.Duration {
return s.Duration return s.Duration
} }