syntax = "proto3";

package com.wixpress.appservice.api;
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";
import "wix/api/validations.proto";
import "wix/api/annotations.proto";

// Describes a setting group of a notification
message NotificationContent {
  SingleContent single = 1;
  GroupedContent grouped = 2;
}

//notification content.
message SingleContent {
  // Title.
  google.protobuf.StringValue title = 1 [(.wix.api.translatable) = {
    type: SHORT_TEXT
    name: "single notification title"
  }];
  // Text that appears in the nofication.
  string message = 2 [(.wix.api.translatable) = {
    type: SHORT_TEXT
    name: "single notification message"
  }];
  // Action that can be triggered in the notification.
  google.protobuf.StringValue action = 3 [(.wix.api.translatable) = {
    type: SHORT_TEXT
    name: "single notification action"
  }];
}


//notification content.
message GroupedContent {
  // Title.
  google.protobuf.StringValue title = 1 [(.wix.api.translatable) = {
    type: SHORT_TEXT
    name: "grouped notification title"
  }];
  // Message.
  string message = 2 [(.wix.api.translatable) = {
    type: SHORT_TEXT
    name: "grouped notification message"
  }];
  // Action.
  google.protobuf.StringValue action = 3 [(.wix.api.translatable) = {
    type: SHORT_TEXT
    name: "grouped notification action"
  }];
}