Source

main / Source / WebClient / Web.BizLogic / Services / Interfaces / IBlobService.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataUp.Web.DataLayer;

namespace DataUp.Web.BizLogic
{
    /// <summary>
    /// Interface representing the blob service methods. Also, needed for adding unit test cases.
    /// </summary>
    public interface IBlobService
    {
        /// <summary>
        /// Gets the files from azure which is identified by file id.
        /// </summary>
        /// <param name="fileID">
        /// ID of the file.
        /// </param>
        /// <returns>
        /// Blob Details.
        /// </returns>
        BlobDetails GetFile(Guid fileId);

        /// <summary>
        /// Checks a file in azure.
        /// </summary>
        /// <param name="fileName">
        /// Name of the file which has to be checked.
        /// </param>
        /// <returns>
        /// True if the file is found successfully; otherwise false.
        /// </returns>
        OperationStatus CheckIfExists(string fileName);

        /// <summary>
        /// Uploads the file to db/azure.
        /// </summary>
        /// <param name="fileDetail">
        /// Details of the file.
        /// </param>
        /// <returns>
        /// True if content is uploaded; otherwise false.
        /// </returns>
        OperationStatus UploadFile(DataDetail fileDetail);
    }
}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.