Skip to content
Snippets Groups Projects
Commit fa27f2c8 authored by Travis Ralston's avatar Travis Ralston
Browse files

Preliminary model for URL preview cache

parent 3bd9f4c5
No related branches found
No related tags found
No related merge requests found
package types
import "github.com/turt2live/matrix-media-repo/client/r0"
type UrlPreview struct {
Url string
SiteName string
Type string
Description string
Title string
ImageMxc string
ImageType string
ImageSize int64
ImageWidth int
ImageHeight int
}
func (p *UrlPreview) ToOpenGraphResponse() r0.MatrixOpenGraph {
return r0.MatrixOpenGraph{
Url: p.Url,
SiteName: p.SiteName,
Type: p.Type,
Description: p.Description,
Title: p.Title,
ImageMxc: p.ImageMxc,
ImageType: p.ImageType,
ImageSize: p.ImageSize,
ImageWidth: p.ImageWidth,
ImageHeight: p.ImageHeight,
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment