The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

JMAP::Tester::Response::Sentence::Set - the kind of sentence you get in reply to a setFoos call

VERSION

version 0.103

OVERVIEW

A "Set" sentence is a kind of Sentence for representing foosSet results. It has convenience methods for getting out the data returned in these kinds of sentences.

PERL VERSION

This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.

Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.

METHODS

new_state

This returns the newState in the result.

old_state

This returns the newState in the result.

created

This returns the hashref of data in the created property.

created_id

  my $id = $set->created_id( $cr_id );

This returns the id given to the object created for the given creation id. If that creation id doesn't correspond to a created object, undef is returned.

created_creation_ids

This returns the list of creation ids that were successfully created. Note: this returns creation ids, not object ids.

created_ids

This returns the list of object ids that were successfully created.

not_created_ids

This returns the list of creation ids that were not successfully created.

create_errors

This returns a hashref mapping creation ids to error properties.

updated_ids

This returns a list of object ids that were successfully updated.

not_updated_ids

This returns a list of object ids that were not successfully updated.

update_errors

This returns a hashref mapping object ids to error properties.

destroyed_ids

This returns a list of object ids that were successfully destroyed.

not_destroyed_ids

This returns a list of object ids that were not successfully destroyed.

destroy_errors

This returns a hashref mapping object ids to error properties.

AUTHOR

Ricardo SIGNES <cpan@semiotic.systems>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Fastmail Pty. Ltd.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.