Skip to content
Repos

DevPlaceApp

C++ 1.1 KB21 lines Opens in site

Directory Raw Download

#pragma once
// Spec: docs/inventory/models.md "Typed strings and numbers". Raw wire values, index = enum order.
#include <array>

namespace dp::spec {

struct WireEnums {
  static constexpr std::array<const char*, 7> kNotificationType = {"comment", "reply", "mention", "vote",
                                                                    "message", "issue", "badge"};
  static constexpr std::array<const char*, 7> kPostTopic = {"random", "devlog", "showcase", "question",
                                                             "rant", "fun", "politics"};
  static constexpr std::array<const char*, 2> kPushProvider = {"apns", "webpush"};
  static constexpr std::array<const char*, 2> kRole = {"Public", "Member"};
  static constexpr std::array<const char*, 15> kTargetType = {
      "post", "comment", "gist", "project", "project_file", "news", "attachment", "message",
      "quiz", "poll", "award", "user", "issue", "workspace", "devii_output"};
  static constexpr std::array<const char*, 3> kAppearance = {"system", "light", "dark"};
  static constexpr std::array<const char*, 3> kAppearanceTitle = {"System", "Light", "Dark"};
};

}  // namespace dp::spec
32.9ms