package WebService::Mattermost::V4::API::Object::Role::BelongingToPost; # ABSTRACT: Mark an object as belonging to a post. use Moo::Role; use Types::Standard qw(Maybe InstanceOf Str); use WebService::Mattermost::Helper::Alias 'view'; ################################################################################ has post_id => (is => 'ro', isa => Maybe[Str], lazy => 1, builder => 1); has post => (is => 'ro', isa => Maybe[InstanceOf[view 'Post']], lazy => 1, builder => 1); ################################################################################ sub _build_post_id { shift->raw_data->{post_id} } sub _build_post { # TODO return undef; } ################################################################################ 1; __END__ =pod =encoding UTF-8 =head1 NAME WebService::Mattermost::V4::API::Object::Role::BelongingToPost - Mark an object as belonging to a post. =head1 VERSION version 0.31 =head1 DESCRIPTION Link a view object to a post. =head2 ATTRIBUTES =over 4 =item C The post's ID. =item C Linked L object. =back =head1 AUTHOR Mike Jones =head1 COPYRIGHT AND LICENSE This software is Copyright (c) 2023 by Mike Jones. This is free software, licensed under: The MIT (X11) License =cut