|
| 1 | +/** -------------------------------------------------------------------------------------------------------------------- |
| 2 | +* <copyright company="Aspose" file="revision.h"> |
| 3 | +* Copyright (c) 2024 Aspose.Words for Cloud |
| 4 | +* </copyright> |
| 5 | +* <summary> |
| 6 | +* Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | +* of this software and associated documentation files (the "Software"), to deal |
| 8 | +* in the Software without restriction, including without limitation the rights |
| 9 | +* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 10 | +* copies of the Software, and to permit persons to whom the Software is |
| 11 | +* furnished to do so, subject to the following conditions: |
| 12 | +* |
| 13 | +* The above copyright notice and this permission notice shall be included in all |
| 14 | +* copies or substantial portions of the Software. |
| 15 | +* |
| 16 | +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | +* SOFTWARE. |
| 23 | +* </summary> |
| 24 | +-------------------------------------------------------------------------------------------------------------------- **/ |
| 25 | + |
| 26 | +#pragma once |
| 27 | +#include "model_base.h" |
| 28 | + |
| 29 | +namespace aspose::words::cloud::models { |
| 30 | + /// <summary> |
| 31 | + /// Revision Dto. |
| 32 | + /// </summary> |
| 33 | + class Revision : public ModelBase |
| 34 | + { |
| 35 | + public: |
| 36 | + |
| 37 | + ASPOSE_WORDS_CLOUD_EXPORT virtual ~Revision() = default; |
| 38 | + ASPOSE_WORDS_CLOUD_EXPORT virtual void toJson(void* jsonIfc) const override; |
| 39 | + ASPOSE_WORDS_CLOUD_EXPORT virtual void fromJson(const void* jsonIfc) override; |
| 40 | + ASPOSE_WORDS_CLOUD_EXPORT virtual void getFileReferences(std::vector< FileReference* >& result) override; |
| 41 | + ASPOSE_WORDS_CLOUD_EXPORT virtual void validate() override; |
| 42 | + |
| 43 | + |
| 44 | + /// <summary> |
| 45 | + /// Gets or sets the revision author. |
| 46 | + /// </summary> |
| 47 | + ASPOSE_WORDS_CLOUD_EXPORT virtual std::shared_ptr< std::wstring > getRevisionAuthor() const; |
| 48 | + |
| 49 | + /// <summary> |
| 50 | + /// Gets or sets the revision author. |
| 51 | + /// </summary> |
| 52 | + ASPOSE_WORDS_CLOUD_EXPORT virtual void setRevisionAuthor(std::shared_ptr< std::wstring > value); |
| 53 | + |
| 54 | + |
| 55 | + /// <summary> |
| 56 | + /// Gets or sets the revision date time. |
| 57 | + /// </summary> |
| 58 | + ASPOSE_WORDS_CLOUD_EXPORT virtual std::shared_ptr< std::wstring > getRevisionDateTime() const; |
| 59 | + |
| 60 | + /// <summary> |
| 61 | + /// Gets or sets the revision date time. |
| 62 | + /// </summary> |
| 63 | + ASPOSE_WORDS_CLOUD_EXPORT virtual void setRevisionDateTime(std::shared_ptr< std::wstring > value); |
| 64 | + |
| 65 | + |
| 66 | + /// <summary> |
| 67 | + /// Gets or sets the revision text. |
| 68 | + /// </summary> |
| 69 | + ASPOSE_WORDS_CLOUD_EXPORT virtual std::shared_ptr< std::wstring > getRevisionText() const; |
| 70 | + |
| 71 | + /// <summary> |
| 72 | + /// Gets or sets the revision text. |
| 73 | + /// </summary> |
| 74 | + ASPOSE_WORDS_CLOUD_EXPORT virtual void setRevisionText(std::shared_ptr< std::wstring > value); |
| 75 | + |
| 76 | + |
| 77 | + /// <summary> |
| 78 | + /// Gets or sets the revision type. |
| 79 | + /// </summary> |
| 80 | + ASPOSE_WORDS_CLOUD_EXPORT virtual std::shared_ptr< std::wstring > getRevisionType() const; |
| 81 | + |
| 82 | + /// <summary> |
| 83 | + /// Gets or sets the revision type. |
| 84 | + /// </summary> |
| 85 | + ASPOSE_WORDS_CLOUD_EXPORT virtual void setRevisionType(std::shared_ptr< std::wstring > value); |
| 86 | + |
| 87 | + |
| 88 | + protected: |
| 89 | + std::shared_ptr< std::wstring > m_RevisionAuthor; |
| 90 | + std::shared_ptr< std::wstring > m_RevisionDateTime; |
| 91 | + std::shared_ptr< std::wstring > m_RevisionText; |
| 92 | + std::shared_ptr< std::wstring > m_RevisionType; |
| 93 | + }; |
| 94 | +} |
| 95 | + |
0 commit comments