UNPKG

weverse

Version:
30 lines (29 loc) 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toMedia = exports.toComment = exports.toPost = exports.toNotification = exports.toArtist = exports.toCommunity = void 0; const models_1 = require("../models"); const media_1 = require("../models/media"); function toCommunity(val) { return new models_1.WeverseCommunity(val); } exports.toCommunity = toCommunity; function toArtist(val, community) { return new models_1.WeverseArtist(val, community); } exports.toArtist = toArtist; function toNotification(val, community, artist) { return new models_1.WeverseNotification(val, community, artist); } exports.toNotification = toNotification; function toPost(val, community, artist) { return new models_1.WeversePost(val, community, artist); } exports.toPost = toPost; function toComment(val, post, artist) { return new models_1.WeverseComment(val, post, artist); } exports.toComment = toComment; function toMedia(val, community) { return new media_1.WeverseMedia(val, community); } exports.toMedia = toMedia;