DiFiclass › Deviation

From Botdom Documentation

Jump to: navigation, search

This class is used to handle the various functions that are used on the Deviations page, including +faving and the "Would you like to +devWATCH ____" message that appears after you've faved several deviations from one artist.

Contents

CheckCrosswatch

Used to check if you have +faved several deviations from an artist; if you have, it is used to create a modal asking you if you would like to watch that artist.

Arguments

Username of artist to be watchedAny valid deviantART username.

Limitations

  • Must be called using POST; returns a const-correctness error otherwise.

Example


deleteSingle

Used to delete a deviation.

Arguments

ID of DeviationID of the deviation to be deleted.
Reason IDAn integer corresponding to a reason for deleting the Deviation.

1 = Updating with newer revision
2 = No longer desired
3 = Cleaning up deviation submissions

4 = Leaving deviantART

Example

  • untested


Favourite

Used to +fav or -fav a Deviation. Toggles; if the Deviation is already faved, it unfaves it.

Arguments

ID of DeviationID of the deviation to be (+/-)faved.

Limitations

  • Must be called using POST; returns a const-correctness error otherwise.


RequestPrint

Used to send a request to the artist asking that they make the Deviation available for purchase as a print.

Arguments

ID of DeviationAny valid ID of a deviation

Limitations

  • Must be called using POST; returns a const-correctness error otherwise.


wantsComment

This method's purpose is currently unknown.

Arguments

ID of Note?To be investigated
Personal tools