All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.afrozaar.wordpress.wpapi.v2.api.Medias Maven / Gradle / Ivy

There is a newer version: 4.8.3
Show newest version
package com.afrozaar.wordpress.wpapi.v2.api;

import com.afrozaar.wordpress.wpapi.v2.exception.WpApiParsedException;
import com.afrozaar.wordpress.wpapi.v2.model.Media;
import com.afrozaar.wordpress.wpapi.v2.model.Post;

import org.springframework.core.io.Resource;

import java.util.List;

public interface Medias {

    Media createMedia(Media media, Resource resource) throws WpApiParsedException;

    List getMedia();

    Media getMedia(Long id);

    Media updateMedia(Media media);

    boolean deleteMedia(Media media);

    boolean deleteMedia(Media media, boolean force);

    Post setPostFeaturedImage(Long postId, Media media);

    List getPostMedias(Long postId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy