Skip to content

Commit 3a9bb6f

Browse files
authored
Merge pull request #7 from voltaney/fix/remove-unnecessary-model-property
Remove unnecessary model property
2 parents f426345 + 5e6f16e commit 3a9bb6f

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

TouchSenderInterpreter/Models/TouchSenderPayload.cs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,7 @@ public record TouchSenderPayload(
44
int Id,
55
DeviceInfo DeviceInfo,
66
SingleTouch? SingleTouch = null
7-
)
8-
{
9-
public SingleTouch? SingleTouchRatio
10-
{
11-
get
12-
{
13-
// If SingleTouch is null, return null
14-
if (SingleTouch == null) return null;
15-
return new SingleTouch(
16-
X: SingleTouch.X / DeviceInfo.Width,
17-
Y: SingleTouch.Y / DeviceInfo.Height
18-
);
19-
}
20-
}
21-
};
7+
);
228

239
public record DeviceInfo(
2410
int Width,

0 commit comments

Comments
 (0)