Skip to content

Commit

Permalink
Expand photo struct
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan committed Feb 1, 2015
1 parent 4d1dfb4 commit c6f0ee4
Showing 1 changed file with 41 additions and 5 deletions.
46 changes: 41 additions & 5 deletions photo.go
@@ -1,12 +1,48 @@
package fhp

type photo struct {
Id int `json:"id"`
Name string `json:"name"`
ImageUrl string `json:"image_url"`
User user
Id int `json:"id"`
UserId int `json:"user_id"`
Name string `json:"name"`
Description string `json:"description"`
Lens string `json:"lens"`
FocalLength string `json:"focal_length"`
Iso string `json:"iso"`
ShutterSpeed string `json:"shutter_speed"`
Aperture string `json:"aperture"`
TimesViewed int `json:"times_viewed"`
Rating float64 `json:"raiting"`
Status int `json:"status"`
CreatedAt string `json:"created_at"`
Category int `json:"category"`
Location string `json:"location"`
Privacy bool `json:"privacy"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
TakenAt string `json:"taken_at"`
HiResUploaded int `json:"hi_res_uploaded"`
ForSale bool `json:"for_sale"`
Width int `json:"width"`
Height int `json:"height"`
VotesCount int `json:"votes_count"`
FavoritesCount int `json:"favorites_count"`
CommentsCount int `json:"comments_count"`
Nsfw bool `json:"nsfw"`
SalesCount int `json:"sales_count"`
ForSaleDate string `json:"for_sale_date"`
HighestRating float64 `json:"highest_rating"`
HighestRatingDate string `json:"highest_rating_date"`
ImageUrl string `json:"image_url"`
StoreDownload bool `json:"store_download"`
StorePrint bool `json:"store_print"`
Voted bool `json:"voted"`
Favorited bool `json:"favorited"`
Purchased bool `json:"purchased"`

User user
}

type PhotoResp struct {
Photo photo
Photo photo
Comments []comment
}

0 comments on commit c6f0ee4

Please sign in to comment.