@@ -43,15 +43,15 @@ public IAsyncEnumerable<ShareRequestBaseDetails> GetOutgoingRequestsList()
4343 Id = y . Shocker ,
4444 Limits = new ShockerLimits
4545 {
46- Duration = y . LimitDuration ,
47- Intensity = y . LimitIntensity
46+ Intensity = y . MaxIntensity ,
47+ Duration = y . MaxDuration
4848 } ,
4949 Permissions = new ShockerPermissions
5050 {
51- Shock = y . PermShock ,
52- Sound = y . PermSound ,
53- Vibrate = y . PermVibrate ,
54- Live = y . PermLive
51+ Vibrate = y . AllowVibrate ,
52+ Sound = y . AllowSound ,
53+ Shock = y . AllowShock ,
54+ Live = y . AllowLiveControl
5555 }
5656 } )
5757 } ) . AsAsyncEnumerable ( ) ;
@@ -85,15 +85,15 @@ public IAsyncEnumerable<ShareRequestBaseDetails> GetIncomingRequestsList()
8585 Id = y . Shocker ,
8686 Limits = new ShockerLimits
8787 {
88- Duration = y . LimitDuration ,
89- Intensity = y . LimitIntensity
88+ Duration = y . MaxDuration ,
89+ Intensity = y . MaxIntensity
9090 } ,
9191 Permissions = new ShockerPermissions
9292 {
93- Shock = y . PermShock ,
94- Sound = y . PermSound ,
95- Vibrate = y . PermVibrate ,
96- Live = y . PermLive
93+ Vibrate = y . AllowVibrate ,
94+ Sound = y . AllowSound ,
95+ Shock = y . AllowShock ,
96+ Live = y . AllowLiveControl
9797 }
9898 } )
9999 } ) . AsAsyncEnumerable ( ) ;
@@ -151,25 +151,27 @@ public async Task<IActionResult> RedeemRequest(Guid id, [FromServices] IDeviceUp
151151 var existingShare = alreadySharedShockers . FirstOrDefault ( x => x . ShockerId == shareRequestShocker . Shocker ) ;
152152 if ( existingShare != null )
153153 {
154- existingShare . PermShock = shareRequestShocker . PermShock ;
155- existingShare . PermSound = shareRequestShocker . PermSound ;
156- existingShare . PermVibrate = shareRequestShocker . PermVibrate ;
157- existingShare . PermLive = shareRequestShocker . PermLive ;
158- existingShare . LimitDuration = shareRequestShocker . LimitDuration ;
159- existingShare . LimitIntensity = shareRequestShocker . LimitIntensity ;
154+ existingShare . AllowShock = shareRequestShocker . AllowShock ;
155+ existingShare . AllowVibrate = shareRequestShocker . AllowVibrate ;
156+ existingShare . AllowSound = shareRequestShocker . AllowSound ;
157+ existingShare . AllowLiveControl = shareRequestShocker . AllowLiveControl ;
158+ existingShare . MaxIntensity = shareRequestShocker . MaxIntensity ;
159+ existingShare . MaxDuration = shareRequestShocker . MaxDuration ;
160+ existingShare . IsPaused = shareRequestShocker . IsPaused ;
160161 }
161162 else
162163 {
163164 var newShare = new ShockerShare
164165 {
165166 ShockerId = shareRequestShocker . Shocker ,
166167 SharedWith = CurrentUser . Id ,
167- PermShock = shareRequestShocker . PermShock ,
168- PermSound = shareRequestShocker . PermSound ,
169- PermVibrate = shareRequestShocker . PermVibrate ,
170- PermLive = shareRequestShocker . PermLive ,
171- LimitDuration = shareRequestShocker . LimitDuration ,
172- LimitIntensity = shareRequestShocker . LimitIntensity
168+ AllowShock = shareRequestShocker . AllowShock ,
169+ AllowVibrate = shareRequestShocker . AllowVibrate ,
170+ AllowSound = shareRequestShocker . AllowSound ,
171+ AllowLiveControl = shareRequestShocker . AllowLiveControl ,
172+ MaxIntensity = shareRequestShocker . MaxIntensity ,
173+ MaxDuration = shareRequestShocker . MaxDuration ,
174+ IsPaused = shareRequestShocker . IsPaused
173175 } ;
174176
175177 alreadySharedShockers . Add ( newShare ) ;
0 commit comments