Brak opisu

Options.cs 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. Copyright 2013-2014 appPlant UG
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. */
  18. using System;
  19. using System.Linq;
  20. using System.Runtime.Serialization;
  21. namespace De.Martinreinhardt.Cordova.Plugins.Email
  22. {
  23. /// <summary>
  24. /// Represents email composer task options
  25. /// </summary>
  26. [DataContract]
  27. class Options
  28. {
  29. /// <summary>
  30. /// Represents the subject of the email
  31. /// </summary>
  32. [DataMember(IsRequired = false, Name = "subject")]
  33. public string Subject { get; set; }
  34. /// <summary>
  35. /// Represents the email body (could be HTML code, in this case set isHtml to true)
  36. /// </summary>
  37. [DataMember(IsRequired = false, Name = "body")]
  38. public string Body { get; set; }
  39. /// <summary>
  40. /// Indicats if the body is HTML or plain text
  41. /// </summary>
  42. [DataMember(IsRequired = false, Name = "isHtml")]
  43. public bool IsHtml { get; set; }
  44. /// <summary>
  45. /// Contains all the email addresses for TO field
  46. /// </summary>
  47. [DataMember(IsRequired = false, Name = "to")]
  48. public string[] To { get; set; }
  49. /// <summary>
  50. /// Contains all the email addresses for CC field
  51. /// </summary>
  52. [DataMember(IsRequired = false, Name = "cc")]
  53. public string[] Cc { get; set; }
  54. /// <summary>
  55. /// Contains all the email addresses for BCC field
  56. /// </summary>
  57. [DataMember(IsRequired = false, Name = "bcc")]
  58. public string[] Bcc { get; set; }
  59. /// <summary>
  60. /// Contains all full paths to the files you want to attach
  61. /// </summary>
  62. [DataMember(IsRequired = false, Name = "attachments")]
  63. public string[] Attachments { get; set; }
  64. }
  65. }