Skip to content

Commit

Permalink
ActivityProductInfoRequest and ActivityProductInfoResponse to Unmarsh…
Browse files Browse the repository at this point in the history
…alContent
  • Loading branch information
VjeraTurk committed Sep 3, 2024
1 parent 88b853b commit 3f195ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/matrix/types.go
Original file line number Diff line number Diff line change
@@ -38,6 +38,12 @@ func (m *CaminoMatrixMessage) UnmarshalContent(src []byte) error {
case messaging.ActivityProductListResponse:
m.Content.ResponseContent.ActivityProductListResponse = &activityv1.ActivityProductListResponse{}
return proto.Unmarshal(src, m.Content.ResponseContent.ActivityProductListResponse)
case messaging.ActivityProductInfoRequest:
m.Content.RequestContent.ActivityProductInfoRequest = &activityv1.ActivityProductInfoRequest{}
return proto.Unmarshal(src, m.Content.RequestContent.ActivityProductInfoRequest)
case messaging.ActivityProductInfoResponse:
m.Content.ResponseContent.ActivityProductInfoResponse = &activityv1.ActivityProductInfoResponse{}
return proto.Unmarshal(src, m.Content.ResponseContent.ActivityProductInfoResponse)
case messaging.ActivitySearchRequest:
m.Content.RequestContent.ActivitySearchRequest = &activityv1.ActivitySearchRequest{}
return proto.Unmarshal(src, m.Content.RequestContent.ActivitySearchRequest)

0 comments on commit 3f195ef

Please sign in to comment.