/Passbook.Generator/Pass.cs
C# | 30 lines | 26 code | 4 blank | 0 comment | 0 complexity | 4d3fd418e9d78896ede4a5ff5949dc85 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Passbook.Generator
- {
- public class Pass
- {
- private string packagePathAndName;
- public Pass(string packagePathAndName)
- {
- this.packagePathAndName = packagePathAndName;
- }
- public byte[] GetPackage()
- {
- byte[] contents = File.ReadAllBytes(packagePathAndName);
- return contents;
- }
- public string PackageDirectory
- {
- get { return Path.GetDirectoryName(this.packagePathAndName); }
- }
- }
- }