about summary refs log tree commit diff stats
path: root/src/configuration.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-08-30 19:28:02 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-08-30 19:28:02 -0400
commite42d8636f3aa15e0ea8f723133914d6dba22009c (patch)
tree897699a71c06ed156f6463e7d67c8aaefed017ad /src/configuration.h
parent62bb8a055fea0a1f3e25f757ca8201f54bae6012 (diff)
downloadlibtwittercpp-e42d8636f3aa15e0ea8f723133914d6dba22009c.tar.gz
libtwittercpp-e42d8636f3aa15e0ea8f723133914d6dba22009c.tar.bz2
libtwittercpp-e42d8636f3aa15e0ea8f723133914d6dba22009c.zip
Whitespace changes
Diffstat (limited to 'src/configuration.h')
-rw-r--r--src/configuration.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/configuration.h b/src/configuration.h index 543e306..e9c3be3 100644 --- a/src/configuration.h +++ b/src/configuration.h
@@ -6,64 +6,64 @@
6#include <set> 6#include <set>
7 7
8namespace twitter { 8namespace twitter {
9 9
10 class configuration { 10 class configuration {
11 public: 11 public:
12 enum class resizetype { 12 enum class resizetype {
13 fit, 13 fit,
14 crop 14 crop
15 }; 15 };
16 16
17 struct photosize { 17 struct photosize {
18 size_t height; 18 size_t height;
19 size_t width; 19 size_t width;
20 resizetype resize; 20 resizetype resize;
21 }; 21 };
22 22
23 explicit configuration(std::string data); 23 explicit configuration(std::string data);
24 24
25 size_t getCharactersReservedPerMedia() const 25 size_t getCharactersReservedPerMedia() const
26 { 26 {
27 return _characters_reserved_per_media; 27 return _characters_reserved_per_media;
28 } 28 }
29 29
30 size_t getDirectMessageCharacterLimit() const 30 size_t getDirectMessageCharacterLimit() const
31 { 31 {
32 return _dm_text_character_limit; 32 return _dm_text_character_limit;
33 } 33 }
34 34
35 size_t getMaxMediaPerUpload() const 35 size_t getMaxMediaPerUpload() const
36 { 36 {
37 return _max_media_per_upload; 37 return _max_media_per_upload;
38 } 38 }
39 39
40 size_t getPhotoSizeLimit() const 40 size_t getPhotoSizeLimit() const
41 { 41 {
42 return _photo_size_limit; 42 return _photo_size_limit;
43 } 43 }
44 44
45 const std::map<std::string, photosize>& getPhotoSizes() const 45 const std::map<std::string, photosize>& getPhotoSizes() const
46 { 46 {
47 return _photo_sizes; 47 return _photo_sizes;
48 } 48 }
49 49
50 size_t getShortUrlLength() const 50 size_t getShortUrlLength() const
51 { 51 {
52 return _short_url_length; 52 return _short_url_length;
53 } 53 }
54 54
55 size_t getShortHttpsUrlLength() const 55 size_t getShortHttpsUrlLength() const
56 { 56 {
57 return _short_https_url_length; 57 return _short_https_url_length;
58 } 58 }
59 59
60 const std::set<std::string>& getNonUsernamePaths() const 60 const std::set<std::string>& getNonUsernamePaths() const
61 { 61 {
62 return _non_username_paths; 62 return _non_username_paths;
63 } 63 }
64 64
65 private: 65 private:
66 66
67 size_t _characters_reserved_per_media; 67 size_t _characters_reserved_per_media;
68 size_t _dm_text_character_limit; 68 size_t _dm_text_character_limit;
69 size_t _max_media_per_upload; 69 size_t _max_media_per_upload;
@@ -73,7 +73,7 @@ namespace twitter {
73 size_t _short_https_url_length; 73 size_t _short_https_url_length;
74 std::set<std::string> _non_username_paths; 74 std::set<std::string> _non_username_paths;
75 }; 75 };
76 76
77}; 77};
78 78
79#endif /* end of include guard: CONFIGURATION_H_A7164D18 */ 79#endif /* end of include guard: CONFIGURATION_H_A7164D18 */