(c *gin.Context)
| 765 | } |
| 766 | |
| 767 | func parseNetworkDirectRoomQuery(c *gin.Context) (store.NetworkDirectRoomQuery, error) { |
| 768 | limit, err := parsePositiveIntQuery(c) |
| 769 | if err != nil { |
| 770 | return store.NetworkDirectRoomQuery{}, NewNetworkValidationError(err) |
| 771 | } |
| 772 | query := store.NetworkDirectRoomQuery{ |
| 773 | PeerID: strings.TrimSpace(c.Query("peer_id")), |
| 774 | Limit: limit, |
| 775 | After: strings.TrimSpace(c.Query("after")), |
| 776 | } |
| 777 | if err := query.Validate(); err != nil { |
| 778 | return store.NetworkDirectRoomQuery{}, NewNetworkValidationError(err) |
| 779 | } |
| 780 | return query, nil |
| 781 | } |
| 782 | |
| 783 | func parseNetworkConversationMessageQuery(c *gin.Context) (store.NetworkConversationMessageQuery, error) { |
| 784 | limit, err := parsePositiveIntQuery(c) |
no test coverage detected