getPath method

String getPath(
  1. String userId
)

Returns the URI path for the search.

Implementation

String getPath(final String userId) {
  switch (this) {
    case UserProductSearchType.CONTRIBUTOR:
      return '/contributor/$userId.json'; // TODO(monsieurtanuki): use '/api/v2/search' instead
    case UserProductSearchType.INFORMER:
    case UserProductSearchType.PHOTOGRAPHER:
    case UserProductSearchType.TO_BE_COMPLETED:
      return '/api/v2/search';
  }
}